Nested if-then-else, Nested if-then-else -17 – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 495

Advertising
background image

23

Use expressions

23-17

• •

Nested if-then-else

You can also nest an if-then-else structure inside the Then or Else part of an if-then-else
structure.

Example 1: Nested if-then-else

This expression:

if statement1 then value1
else if statement2 then value2
else value3

has this interpretation:

Advertising