OCLOperators whenfalse
The whenfalse OCL operator is the opposite of the whentrue operator. It is used to specify an expression to be run when the Boolean argument expression is false.
It can be used to chain Boolean expressions.
Example
let x=SomeObject.SomeEnum in ( (x=#Enum1).whenfalse(SomeObject.DoYourThing1); (x=#Enum2).whenfalse(SomeObject.DoYourThing2); (x=#Enum3).whenfalse(SomeObject.DoYourThing3) )
See:
This page was edited 86 days ago on 08/19/2024. What links here