0

If statement

Can you put multiple conditions in the if condition brackets and if so how? I want to use &&, how would I do it?

6th Jan 2018, 12:11 AM
Lord Awesome
Lord Awesome - avatar
5 Antworten
+ 6
yes, you can use it as many as you want if(1<2 && 3<4 && 4<5) { // do some stuff }
6th Jan 2018, 12:20 AM
Vukan
Vukan - avatar
- 1
@vukan ca u help me with this kode it doesnt work properly
6th Jan 2018, 3:51 AM
Lord Awesome
Lord Awesome - avatar
6th Jan 2018, 3:52 AM
Lord Awesome
Lord Awesome - avatar
- 1
i pretty shure that my eror b4 was that i couldnt put same variable twice so i try this way and it still no work
6th Jan 2018, 3:53 AM
Lord Awesome
Lord Awesome - avatar