This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
howtos:toolcoding:feedback_views [2011/06/23 14:13] chris.strashok |
howtos:toolcoding:feedback_views [2011/06/23 14:13] chris.strashok |
||
---|---|---|---|
Line 11: | Line 11: | ||
* You can declare regular **local** variables in a feedback view, however be aware that local variables are wiped out at the start of each iteration. If you want to reuse you local variables for each iteration you need to declare it as **keep** variable, which remain available to the view for every iteration. Usually you create keep variables on the first iteration inside an "if clause" as seen below: | * You can declare regular **local** variables in a feedback view, however be aware that local variables are wiped out at the start of each iteration. If you want to reuse you local variables for each iteration you need to declare it as **keep** variable, which remain available to the view for every iteration. Usually you create keep variables on the first iteration inside an "if clause" as seen below: | ||
<code> | <code> | ||
- | keep A[] | + | **keep** A[] |
if ($fbViewIteration) | if ($fbViewIteration) | ||
A[] = create(...) | A[] = create(...) |