for statements fix.

`expression1` is executed before looping.
`expression2` is executed to decide to execute `for` code block.
`expression3` is executed after each loop.
This commit is contained in:
Marçal Juan Llaó
2015-04-29 11:30:47 +02:00
parent 641ed63aef
commit b68aafe64c

View File

@@ -62,7 +62,7 @@ The label name is case sensitive.
//...
}
`expression1`, `expression2` and `expression3` are all expressions, where `expression1` and `expression3` are variable definitions or return values from functions, and `expression2` is a conditional statement. `expression1` will be executed before every loop, and `expression3` will be executed after.
`expression1`, `expression2` and `expression3` are all expressions, where `expression1` and `expression3` are variable definitions or return values from functions, and `expression2` is a conditional statement. `expression1` will be executed once before looping, and `expression3` will be executed after each loop.
Examples are more useful than words.