Main   Class List   Namespace List   Online

Recent Changes

Foreach Statements

Two new statements simplify the iteration over sets of objects and string vectors.

To loop over each object in a SimSet, use the foreach statement:

foreach( %obj in %set )
   /* do something with %obj */;

To loop over each element in a string vector, use the foreach$ statement:

foreach$( %str in "a b c" )
   /* do something with %str */;

foreach Statement foreach$ Statement

Redefinition Behavior

Singletons

Lookup Operator

Floating-Point Notation

Datablock Syntax Extensions



Copyright © GarageGames, LLC. All Rights Reserved.