Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > IE > StandardPackage > Constants

ForEachComment Resource String

Scroll Prev Top Next More

'Executes a loop where a set of statements are applied to a list. '+'The first argument specifies a variable name. Each item in the '+'second argument list is assigned to the variable and then '+'all the rest of the arguments are executed. The function returns '+'the value of the last statement or the return value if a "return" '+'statement was found. '+'For example, the statement '+' (foreach i (create$ red green blue) (bind ?x (str-cat ?i " color")) (printout t ?x))'+sLineBreak+'will print out'+sLineBreak+' red color'+sLineBreak+' green color'+sLineBreak+' blue color'+sLineBreak+'and return "blue color"'

Namespace: StandardPackage

Value

Type: string

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb