Servertec | if then-else-end
M E N U Content Introduction Release Notes Requirements Installation Change Log Future Plans Knowledge Base Referance Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements = break call // continue exit include return If-Then-End If-Then-Else-End If-Then -ElseIf-Then -End If-Then -ElseIf-Then -Else-End Do-Loop Do-Until-Loop Do-While-Loop Do-Loop-Until Do-Loop-While For-Next For-Step-Next Objects Wrappers Server Side Preprocessor Executable Make Samples Legal Feedback | Used to conditionally execute a block of statements when expression evaluates to true and another block of statements when the expression is false. #### Syntax if expression then { statement }... else { statement }... end #### Notes expression the expression to evaluate. statement any statements to process. #### Example if quantity < 1 then unitCost = totalAmount / quantity print( "Unit Cost: " + unitCost ) else print( quantity + "is not a value value for quantity" ) end
top of page
| Copyright © 1997-1998 Servertec. All rights reserved. Last Modified: Wed Apr 15 00:16:38 EDT 1998