Statements and blocks

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
   Comments
   Numbers
   Literals
   Var and const
   Operators
   Statements and blocks
   Program flow
   Trace facility
   Exception handling
   Functions
   Predefined identifiers
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

An expression becomes a statement when it is followed by a semicolon:

var x = 5;
y = ++x * 7;
foo();

Braces { and } are used to group statements into a compound statement, so they are syntactically equivalent to a single statement:

{ y=z; foo(); }

The comma may be used to group several expressions into a single statement too:

y=z, foo();
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>