Forum Discussion

_ivanovich_'s avatar
_ivanovich_
Frequent Contributor
5 years ago

How to write if statement with multiple operators ?

Hi,   is there a better way to re-write this statement?   a ='1a' b ='2a' c = '3a' d= '4a' e ='5a' if (a=='1a' || b == '2a' || c =='3a') && (d == '4a'){ assert e =='5a'   Thank you