Breaking a foreach loop

Pino Toscano toscano.pino at tiscali.it
Mon Apr 17 18:10:54 CEST 2006


Hello,

imagine I'm iterating using a foreach() like this:
set(MY_OPTS "foo bar etc")
foreach(OPT ${MY_OPTS})
  # do something ...
endforeach(OPT ${MY_OPTS})

is there a way to break the iteration, just like a break in C?

Whether it exist, does it break even nested foreach()?

Regards,

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060417/1f8d29a9/attachment.pgp 


More information about the Kde-buildsystem mailing list