Kontrollstrukturen
if/else-Anweisungen
if/else-Anweisungenif (condition) {
// run code if condition is true
} else {
// run code if condition is false
}if (condition) {
// run code if condition is true
} else if (conditon) {
// run code if first condition is false and second is true
} else {
// run code if both conditions are false
}Beispiel
Conditional Operator
Beispiel
switch-Anweisung
switch-AnweisungBeispiel
Last updated