+ 1
Can I test for a condition according to an another condition in the for loop, using conditional operator?
2 Answers
+ 1
No, I'm not asking for in the loop's body, but in the loop's condition test.
+ 1
You can link conditions i.e. with
&& and
|| or
!= not equal