beautypg.com

Example 2: nested if–then–else, This expression, Has this interpretation – Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 540

background image

Creating expressions

14–27

Example 2: Nested if–then–else

This expression:

if (statement1) then
if (statement2) then (value1)
else (value2)

else (value3)

has this interpretation:

enter

statement1

value3

exit

true

false

value
2

statement2

true

value
1

false

1

2

exit

value3

statement1