Page 1 of 1

Control HS if if then else?

Posted: Fri Aug 19, 2011 10:49 pm
by doug
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?

Posted: Sat Aug 20, 2011 6:56 pm
by webmaster
Here you go. There is also a while loop sample.

Hope it helped.

Re: Control HS if if then else?

Posted: Sat Aug 20, 2011 11:25 pm
by doug
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.