Can I test for a condition according to an another condition in the for loop, using conditional operator? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grátis
+ 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 Respostas
+ 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