'short circuit' with 'If' statement

fuji36

New Member
Does Progress 4gl have the 'short-circuit' behavior like some other languages, in a multiple condition 'If' statement?

ie: If ( (varA = False) OR (varB = False) Or (varC = False)) then do:

//stuff

end.
Else do:

//other stuff

End.

'short-circuit' being: As soon as one condition is met. then do //stuff
 

Stefan

Well-Known Member
A common use case being

Code:
If available someRecord and someRecord.field then do:
 
Top