Can I test for a condition according to an another condition in the for loop, using conditional operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I test for a condition according to an another condition in the for loop, using conditional operator?

24th Dec 2017, 3:19 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
2 Answers
+ 1
No, I'm not asking for in the loop's body, but in the loop's condition test.
24th Dec 2017, 3:44 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
+ 1
You can link conditions i.e. with && and || or != not equal
24th Dec 2017, 4:29 PM
Timon Paßlick