+ 1

Is there away to increment separate conditions inside an if statment?

an example if(this&&this(i+2)|| this&&this(i+4) || this&&this(i+6)){

2nd Nov 2017, 9:42 AM
D_Stark
D_Stark - avatar
4 Respuestas
+ 4
i just wanted to see how short i can make the code
2nd Nov 2017, 9:57 AM
D_Stark
D_Stark - avatar
+ 3
i could but would like to know if this ones possible ☺
2nd Nov 2017, 10:05 AM
D_Stark
D_Stark - avatar
+ 2
Why not use multiple if statements? Sorry, if i interpreted your question wrongly
2nd Nov 2017, 9:46 AM
Cool Codin
Cool Codin - avatar
+ 2
What about ternary operators?
2nd Nov 2017, 9:59 AM
Cool Codin
Cool Codin - avatar