Servertec | if then-else-end | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Used to conditionally execute a block of statements when expression evaluates to true and another block of statements when the expression is false. Syntaxif expression then{ statement }... else { statement }... end Notesexpression the expression to evaluate.statement any statements to process. Example
unitCost = totalAmount / quantity print( "Unit Cost: " + unitCost ) else print( quantity + "is not a value value for quantity" ) end |
|
top of page
|