|  | Conditional command if (For modes 2D, 3D, Console) | | Provides branching of program according to actual value of given condition. | |
|
|  | Else (For modes 2D, 3D, Console) | | Optional part of conditional expression, that is executed when preceding condition is false. | |
|
Syntax:
if(condition){command}else{command}
If the value of variable i is 0, Baltie takes two steps, else turns left. |
|
|
Conditional command switch
|  | Conditional command switch (For modes 2D, 3D, Console) | | Enables program branching according to value of given expression. | |
|
|  | Case (For modes 2D, 3D, Console) | | Item of conditional command switch. | |
|
|  | Default (For modes 2D, 3D, Console) | | Optional item of conditional command switch. It is executed when none of case items is matched. | |
|
Syntax:
switch(expression){
casevalue{command}
.
.
.
casevalue{command}
default{command}
}
Did you find this information useful?
Documentation of SGP Baltie 4 C#
Send us comments on this topic by
this form
©1978-2010
SGP SystemsParent page |
Previous page |
Next page