Forum Discussion
2 Replies
Sort By
- ashokkumaredsContributor
Hi ,
control should go to ELSE block. It cannot go to IF block. it evaluates to false || false which is false.
- AlexKarasChampion Level 3
Hi,
As a side note: to avoid possible error with operation priorities and to make the code more evident, I used to explicitly include separate conditions into parenthesis. I.e. :
if((a!=b) || (b!= c))
...
Related Content
- 6 months agopaarmann-ara
- 9 years agoteak
- 4 years agoToananas
Recent Discussions
- 3 hours agojstaehlin
- 21 hours agoAivanitskiy
- 24 hours agonastester