Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : Elements of SpeedScript syntax : Statements
 

Statements

This is the basic syntax of a WebSpeed application:

Syntax

statement { . | : }[statement{ . | : }...
Thus, a SpeedScript application consists of one or more statements. Each statement consists of a number of words and symbols entered in a statement-specified order and terminated by a period (.) or a colon (:), depending on the type of statement.
Note: SpeedScript is a case-insensitive language. However, by convention, SpeedScript keywords (such as FOR) are expressed in uppercase lettering. Also by convention, most preprocessor names in WebSpeed are expressed in uppercase and the CGI environment variables defined in SpeedScript are expressed in uppercase according to the usual CGI conventions. However, character string compares and database queries keyed on character strings can be case-sensitive or case-insensitive, depending on the context and specifications of the compare or query.
sample1 is a one-statement application that displays "Hello, World!" in a browser, as shown:

sample1

{&OUT} "<H1> Hello, World! </H1>" .
Note: You can experiment with the sample code in this section by running the code in the WebTools Scripting Lab. From the AppBuilder, choose Tools® WebTools and then choose Scripting Lab from the WebTools menu.