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.