September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
13
Task/Conditional-structures/Zkl/conditional-structures.zkl
Normal file
13
Task/Conditional-structures/Zkl/conditional-structures.zkl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if (x) y else z;
|
||||
if(a)b else if (c) else d; etc
|
||||
x:=(if (a) b else c);
|
||||
|
||||
a and b or c // usually the same as if(a) b else c, beware if b evals to False
|
||||
|
||||
switch(x){
|
||||
case(1){...}
|
||||
case("2"){...} // matches anything
|
||||
case(a)[fallthrough]{...} // no break, no break has to be explicit
|
||||
case(b){...}
|
||||
else {...} // case a C's default, has to be at the end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue