Hi
There is a special possibility with case statement
CASE TRUE OF
Expression1:; //do something
Expression2:; //do something
ELSE //do something
END;
Personally I think a construction like this is a bit easier to read than subsequent if or else if statements. What is your opinion?
Regards
Thomas
Answers
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
That's why I like it
- The first, and only the first matching section is executed.
- There is no fall-trough, so subsequent sections are out of reach, no break needed.
The nested IF .. ELSE IF sequence is free from both and thus more easily readable.Regards
Thomas
Senior NAV Developer
Elbek & Vejrup