Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: IIF

$
0
0
Ok, thank you. It's certainly possible to do it in two lines and it occurred to my mind but that's not what I'm looking for. I just like my code being simple but readable. That's why I very agree with you as for readability of code. But sometimes there're very simple parts of code with IF statement like following IF (l-anItem NULL)     set x to 1 ELSE     set x to 0 END-IF and in those cases such a syntax would be useful. Something like move IIF(l-anItem NULL, 1, 0) to x compute x = IIF(l-anItem NULL, 1, 0)

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>