Skip to main content


 

Symptoms


How to nest an Else statement in a For loop.

 

Diagnoses


The UI prevents this, but there is a workaround.
 

Resolution

Create the conditionals in an Unbound Rule (outside of the context of triggers like 'When the Form/Control raises an event') and then using the 'Execute Another Rule' action to call the unbound rule. There are limitations to our rule UI that prevent nesting in some scenarios, but I've found that this has been an effective workaround.




 

Thank you for this. Hadn't thought of the concept of creating a rule to get around an issue with the interface. Kept trying to move line items up and down etc. 


Reply