Portlet Factory, Version 6.1.2


 

Creating conditional action lists

You can use the Action Chooser to implement if/else statements within an action list. If you plan on profiling the conditional statements, use the Conditional Action builder as it makes profiling the conditional action statements easier. Some things to keep in mind when using conditional statements in an Action List:

  • You must include an EndIf statement for each If statement

  • You can execute more than one model action in If and Else statements

  • You can nest If/Else statements

To execute actions based on conditional logic:

  1. In the action list table, open the action chooser by clicking on the ellipsis (...) button.

  2. Expand the Special node.

  3. Expand the Conditional node and select the If element, launching the Define Conditional Action dialog.

  4. In the Value field of the Define Conditional Action dialog, use the Reference Chooser to specify the variable or method whose value will determine the actions to take.

  5. For the Comparison Type field, use the select box to choose one of the listed comparison types.

  6. If the Comparison Type uses two values (is less than, is equal to, and so on), a Comparison Value input appears. Use the reference chooser to select a variable or method whose value you want to compare to the value of the variable or method specified for the Value input.

    Note: If the "is between" Comparison Type is selected, a second Comparison Value input is displayed.

  7. For the Comparison As field, specify how you want to compare the values of the Value and Comparison Type fields. Possible choices are:

    automatic

    The Action List builder call analyzes the two value types and performs the appropriate comparison.

    as strings

    Compare the two values as strings.

    as case-insensitive strings

    Compare the two values as strings, ignoring case differences.

    as numbers

    Compare the two values as numbers.

Parent topic: Action List builder Related concepts

About using the builder call editor

About using arguments with an action

About using special actions

Web Service Enable builder Related tasks

Creating a comment action

Creating an action that returns a value

Creating an action that assigns or appends a value to a variable

Profiling actions in an action list

Profiling actions on and off in an action list Related reference

Action List builder inputs

Comparison results Related information

Jakarta regexp package


Library | Support |