beautypg.com

Example 1: nested if–then–else – Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 539

background image

14–26

RSView32 User’s Guide

Example 1: Nested if–then–else

This expression:

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

else (value3)

has this interpretation:

value3

value2

statement2

exit

true

false

value1

enter

statement1

true

false