Skip to main content


 

Symptoms


How-to put to put a for loop in an if statement
 

Diagnoses


In smartform rules there is not a way to add a for loop in an if statement.

 

Resolution

Workaround this by creating an unbound rule, by using Add Rule, then under conditions use the For Loop. Name that rule something i.e. "MyForLoop"
Do the for loop logic in the unbound rule.
Under the rule that contains the IF statement, under Actions, select Execute Another Rule, and select "MyForLoop" Rule.




 
Be the first to reply!

Reply