Chapter 3 The Application Description Language
There are three non-C++ control structures:
list alist; any value for value in alist { if (isInteger (value)) { echo("Value is an integer\n"); {else { echo("Value is not an integer\n"); } } integer anArray<string>; list alist; anArray["Steve"} = 43; anArray["Lori"] = 42; for alist in anArray{ echo("Age of"&at(2,alist)&"is"&at(1,alist)+"\n"); } integer ival = 7; cond{ (ival >= 2) { echo("Integer greater than 2\n"); } (ival >= 0 { echo("Integer greater than or equal to 0 but less than 2\n"); } (TRUE) { echo("Integer is negative\n"); } } |
Generated with Harlequin WebMaker