Feedback

  • Contents
 

Condition Tool

This Basic tool tests a conditional expression and follows the link associated with the result of that test. A conditional expression resolves a Boolean value (either True or False). Therefore, a conditional step has a True exit and a False exit.

For example, a conditional step might compare a variable ‘FirstName’ to a string value "John." If ‘FirstName’ contains the word "John", then the handler continues execution on the True branch of the conditional step. However, if ‘FirstName’ does not contain the word "John", then the handler continues on the False branch.

Statement Page

On the statement page you can view a conditional expression you have built, or start the Expression Editor Assistant to create or edit a condition.

Current Condition

This parameter contains the conditional expression. You can also type a new condition, or build a complex expression using the Expression Editor Assistant. Remember that the expression you build must result in a Boolean value.

If you encounter a variable in the Current Condition parameter, it is always a Boolean variable that is assigned a value somewhere else in the handler, or was created in the initiator step that started the handler or subroutine. Likewise, you can evaluate the value of a Boolean variable whose value was assigned elsewhere in a handler or subroutine.

It is important to keep track of the logic being used in setting up the conditional expression, especially when it is the condition of a Boolean variable that is being checked. For example, consider a Boolean variable 'CallReceived' that has the value of "False". If the condition expression is written simply to look at the variable 'CallReceived' without an associated value given, then the handler will continue on the False branch because the value of 'CallReceived' is "False". On the other hand, if the expression compares the variable 'CallReceived' to the value "False", then the handler will continue execution on the True branch because it is true that the value is "False".

Exit Paths

True

If the condition evaluated by this step has a value of true, this step takes the True exit path.

False

If the condition evaluated by this step has a value of false, this step takes the False exit path.

Related Topics

Boolean values

Expression Editor Assistant