0

is 'else if correct statement?

30th Jun 2016, 6:57 PM
Milad Zeinali Laki
Milad Zeinali Laki - avatar
7 ответов
+ 3
yes. like this If(condition) {code to be executed} else if(condtion) {code to be executed} else {code to be executed}
1st Jul 2016, 1:18 AM
Muench Riel Macarasig
Muench Riel Macarasig - avatar
+ 1
It's all the same with different languages. Same logic but can be different syntax.
1st Jul 2016, 1:19 AM
Muench Riel Macarasig
Muench Riel Macarasig - avatar
+ 1
it also can be altered with switch.. same usage
2nd Jul 2016, 4:14 AM
Mohammed Osama El-Morsy
Mohammed Osama El-Morsy - avatar
0
yeah
8th Jul 2016, 4:43 PM
kisiga aidan
kisiga aidan - avatar
0
yes
20th Jul 2016, 3:14 AM
Ankit
Ankit - avatar
0
you may use 'elseif' or 'else if' statement
20th Aug 2016, 7:27 PM
Andragon
0
yes but it begin with if and end on else "If(condition) {code to be executed} else if(condtion) {code to be executed} else {code to be executed} "
17th Nov 2016, 11:47 AM
durgesh piplodia
durgesh piplodia - avatar