Servertec | Statements
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 | A statement is an complete instruction to the computer. There are simple statements and compound statements. Simple statements span a single while. While compound statements spand multiple lines and include a beginning statement and an ending statement. #### Syntax
Simple Statements | Syntax
Assignment | variable = expression
Break | break
Call | name ( { expression { , expression }... } )
Comment | // { comment } /* { comment } */
Continue | continue
Exit | exit
Include | include expression
Return | return { expression }
Compound Statements | Syntax
If-Then-End | if expression then { statement }... end
If-Then-Else-End | if expression then { statement }... else { statement }... end
If-Then-ElseIf-Then-End | if expression then { statement }... [ elseif expression then { statement }... ]... end
If-Then-ElseIf-Then-Else-End | if expression then { statement }... [ elseif expression then { statement }... ]... else { statement }... end
Do-Loop | do { statement }... loop
Do-Until-Loop | do until expression { statement }... loop
Do-While-Loop | do while expression { statement }... loop
Do-Loop-Until | do { statement }... loop until expression
Do-Loop-While | do { statement }... loop while expression
For-Next | for variable = expression1 to expression2 { statement }... next
For-Step-Next | for variable = expression1 to expression2 step expression3 { statement }... next
#### Example do name = input( "first name:" ) if name = "" then break end if name = "tom" then println( "hello " + name ) else println( "hi" + name ) end loop
top of page
| Copyright © 1997-1998 Servertec. All rights reserved. Last Modified: Wed Apr 15 00:16:38 EDT 1998