Feb. 19, 2014
2:46 p.m.
On 19/02/2014 13:34, Alejandro López Correa wrote:
Hello,
I think adding an optional "WHILE" clause in "FOR" loops might be useful sometimes (shorter code and/or improved readability):
for #VAR# in #SEQUENCE# while #WATCHDOG_EXPRESSION#: #CODE_BLOCK# It seems to me this would be the same as
for #VAR# in #SEQUENCE#: if not (#WATCHDOG_EXPRESSION#): break #CODE_BLOCK# which doesn't really seem to me to justify adding new syntax. Rob Cliffe