Action: Condition-If


November 26, 2008




The IF Condition Action provides conditional branching within your Actions, and can be used in combination with the Else If Condition and Else Condition . The general concept is familiar to anyone who has used another programming application or language. The Condition is evaluated and when the result is TRUE, the child actions are processed. If the Condition is False, either the Condition branch is abandoned, or when ELSE or ELSE IF are used, the next sibling in the branch is attempted.

Condition Mode

The Condition Mode allows you to either use the standard interface, which provides the Left Value, Operator and Right Value - OR to use the Advanced, or Compound mode. The Compound mode allows you to specify the entire entire condition with standard syntax. It is important to note that if the General Settings state that Math is to be used within Conditionals, Mathematic symbols may be miss translated. For example, if you are comparing a value that is in a Date format, it may attempt Division due to the use of the "/" value.

Standard Mode

An example of the Standard Mode - checking to see if the current user is a member of the Administrators role.

Left Hand: [FORMAT,Administrators,{ISINROLE}]
Operator: =
Right Hand: True

Advanced (Compound) Mode

An example of a Compound statement - checking to see if the current user is a member of the Administrators role AND the Querystring Parameter "ProductID" is larger than 500.

Condition: [FORMAT,Administrators,{ISINROLE}] AND [ProductID,Querystring] > 500

Average (0 Ratings):
Want to help out?

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • 410.327.0007 •

Bookmark & Share Bookmark and Share