Please enable JavaScript to view this site.

iService Forms User Guide

The if command follows the standard IF/THEN/ELSE logic that is common in most scripting languages. The $IF command is used in conjunction with the $Else$ and $EndIf$ command to form the conditional logic for a page. Multiple $IF commands can be nested together if desired.

 

The parameters used with the $IF statement (e.g., -loggedin, -myaccountlists, etc.) are evaluated when the iService form loads and specifies the condition that is checked. For example, $IF -loggedin$ will evaluate whether the form was loaded by a user that is logged into iService and has a valid user session. If the user is logged in then the form body after the $IF will be displayed. If the user is not logged into iService, the form body after the $Else$ will be displayed.

 

The $If command supports various parameters that are useful in different scenarios dependent upon the context of the form. For example, in a customer portal (My Account Form) that presents mailing lists for subscription it can be used to determine whether any mailing lists are available to the logged in contact.