StartsWith Post-processing function can be used in agents to set the 'true or ‘false’ value, where the fields start with or not either for character or for string respectively. For example, I have this scraping agent “StartsWith Function Example(Post-processing)” in my account and I want to make sure the field City start with Washington is ‘true’ or for other fields is ‘false’, using StartsWith Post-Processing function in the IsWashington City field which is created in the table for assigning the ‘true’ or ‘false’ value.
Before
Steps
-
Edit the scraping agent by clicking on the Edit tab
-
Add a new field name it something like me named it IsWashington City and selector will be same as for City field
-
Click on the Add Post-Processing button to add the
StartsWith
Post-processing function, the below dialog box will appear -
Now ,enter the text as ‘Washington’ in Input parameter which compare to this field of the table and return the
true
whenever it matches elsefalse
-
Then Save the function and the scraping agent configuration
-
And finally, re-run your agent to apply the changes.
After StartsWith Function
If you notice the screenshot below, the IsWashington City field is updated by StartsWith
Post-processing function.