You are here: Designing an Application > Add Actions > Conditions

Conditions Actions

The conditional behaviors that you can assign are as follows:

Action Property
If Condition Specifies an action to be executed when one or more conditions are satisfied.
Else If Condition Specifies an action to be executed when one or more conditions (in addition to the If condition) are satisfied.
Else Condition Specifies an action to be executed when an If or Else If condition is not satisfied.
Channel Condition Specifies for which channels an action is executed.

To add conditional behavior to an action sequence, do the following:

  1. From the Project tab of the Project Explorer, select the widget you want to apply the action to. Once it’s highlighted on the Visualizer Canvas, right-click it, and then select one of the action sequences, such as onTouchStart. Doing so opens the Action Editor and creates an action sequence for you to configure.
  2. From the list of actions available along the left column of the Action Editor, click one of the four types of conditions from the Conditions section. The action is added to the action sequence and is the current action of focus.
  3. In the bottom pane of the Action Editor, set the conditions that you want to be met. To add additional conditions, click the green plus icon. To delete a condition, click its corresponding red x icon.
  4. Add the action or actions that you want to carry out when the condition is met by locating and clicking the action from the list of actions available along the left column of the Action Editor. To subordinate the action under the conditional statement, right-click the action you just added, and then click Indent In.
  5. Repeat steps 2 through 5 for any other conditional behavior that you want to associate with the action sequence.
  6. Save the action by pressing Ctrl+S.
Copyright © 2013 Kony, Inc. All rights reserved.