-
Notifications
You must be signed in to change notification settings - Fork 0
Features Control Statements
Kameron Brooks edited this page Dec 26, 2018
·
2 revisions
// if
if(x == 1) {
//...
}
// if else
if(x == 1) {
//...
} else {
//...
}
// if else if else
if(x == 1) {
//...
} else if(x == 2) {
//...
} else {
//...
}
An else statement can technically be followed by a different statement, which could allow interesting things like:
if(arr == null) {
print("arr is null");
} else for(int i = 0; i < arr.length; i += 1) {
print("array element!");
}
while(true) {
//...
}
Not yet supported
for(int i = 0; i < x; i += 1) {
//...
}
Not supported
Questions? Comments?
Contact me at [email protected]
Follow on Twitter: @wasteland_11
Copyright 2019 © Kameron Brooks