Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Search value in set.

$
0
0

Hello,

On Dynamics 2009 AX code,

when I want to compare integer value to several values, I do:

if (i == 1 || i == 2 || i == 5 || i == 8 | i == 15) ...

How can I do the above simplier and shorter?

(Something like if (i in (1,2,5,15)) - but this is not the right syntax).

 

Thanks :)


Viewing all articles
Browse latest Browse all 73760

Trending Articles



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