Home · Overviews · Reference · Classes codeless banner

for()

Usage

    VAR=foo bar baz
    for (v,VAR) {
      message($$v)
    }

Description

This function is similar to but not as completely implemented as the for() function in qmake. There is no break() or continue(), there is no infinite loop.

Note that the value of v will NOT be modified outside of the scope of the for loop. Its value is saved and restored after the loop as finished.

See also QBuild Functions and QBuild Script.


Copyright © 2009 Trolltech
Qt Extended - QBuild Maintainer Guide