forum

Home / DeveloperSection / Forums / If or - shorter way

If or - shorter way

Samuel Fernandes198106-Jun-2013
Hi Everyone,

I have many or inside if

if (n==0 || n==1 || n==2 || n==37 || n==5 ...)  
Is there a shorter way, something like

if (n==(0,1,2,37,5...)) 

Thanks in advance. 

Updated on 06-Jun-2013

Can you answer this question?


Answer

1 Answers

Liked By