Table Of Contents

If Else

Last Modified: June 10, 2021

A statement that defines an expression to evaluate to determine whether to execute one section of code or another.

When you add an If Else statement to your real-time sequence code, the editor automatically generates Then and Else blocks under the statement. If the Test Expression evaluates to TRUE, the statement executes the code under the Then block. If the expression evaluates to FALSE, the statement executes the code under the Else block.

To specify the code that each block executes, drag expressions and other primitives to the blocks and configure them as you would any other section of sequence code.

Property/Section Description
Test Expression Specifies the expression to evaluate to determine the code to execute.
Description Specifies a description for the current item. This text appears when you hover over the item in the Stimulus Profile Editor.

Recently Viewed Topics