IF instruction

Be aware that the REXX interpreter always evaluates the complete IF condition!

Example:

 
  i = 0
  if i = 1 & myFunc() then
    ...

In this example the REXX interpreter executes the function myFunc() even if the first part of the condition is already false!


[Back: DO loops]
[Next: Information saved during subroutine & function execution]