Control HS if if then else?
Control HS if if then else?
Can you provide an example of how to control HS actions with the execution of JavaScript? I want to test the attributes of a field (or its absence) and return true or false and have HS do alternative HS actions.
Re: Control HS if if then else?
Here you go. There is also a while loop sample.
Hope it helped.
Hope it helped.
- Attachments
-
- Statements.hsp
- (276.91 KiB) Downloaded 1547 times
Juan Soldi
The Helium Scraper Team
The Helium Scraper Team
Re: Control HS if if then else?
Yes, thanks. I see the trick of negation to simulate "else" (taking caution that "then" doesn't change the condition). Your example also shows that the tag for scripts are truly comments and not function names -there are 2 else's and 2 initialize's.