Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Nesting if-constructs

  • Last UpdatedOct 24, 2022
  • 1 minute read

Any if-construct may contain further if ..., elseif ..., endif constructs:

if (!Number LT 0) then

    !Negative = TRUE

if (!Number EQ -1 ) then

 !OnlyJustNegative = TRUE

endif

endif

It is particularly helpful with nested if constructs to indent the code so that the logic is clear.

Related Links
TitleResults for “How to create a CRG?”Also Available in