Text Decision Component: ConditionalsA conditional can be used to determine when a text decision component is enabled so a user can enter text, disabled so a user cannot enter text, or determine when a text decision component should be visible or invisible in a sim. The conditional works by determining the state of the text decision component based on a compared value. For example, a text decision component can be set to become enabled when a variable has reached a certain value (see example below).
Example: Text decision conditional
Setting a Condition for a Text Entry ComponentFollow the instructions below to create a conditional for your text decision component:
- Click on the text decision component placed on the canvas area of the UI designer to access the ‘Decision Input Settings' tab in the component panel.
Decision Input Settings Tab
- Click the horizontal 'Conditionals' tab. Note that the component panel may need to be expanded to view the properties contained inside (see below).
Example: How to expand the component panel (‘Conditionals’ tab shown above)
- Click on the 'Make Decision Input’ drop-down menu arrow to select either 'Enabled', 'Disabled', 'Invisible', or 'Visible'.
- Click on the 'when' drop-down menu arrow, and then click 'Browse'. In the 'Browse' screen, select a variable to associate with the text decision component.
- Click on the 'is equal to' drop-down menu arrow, and then choose one of the following options:
- 'is equal to'
- 'is greater than'
- 'is greater than or equal to'
- 'is less than'
- 'is less than or equal to'
- 'is not equal to'
- Click inside the text entry box located directly below the 'when' drop-down menu and enter a value. If the variable is based on a numeric value, enter a number; if the variable is based on an alphabetical value, use letters (values are determined by the letter's place in the alphabet).
- Click the 'Add Conditional' button to add the conditional to your text decision component.
Related LinksText Decision Properties