You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try implementing a simple "while"-loop like this:
setvar("i", "0");
setvar("num-apks", 10);
if cmp(getvar("i"), "<", getvar("num-apks")) == 1 then
#gotolabel("my_app__loop1");
appendvar("text", getvar("i") + "\n");
setvar("i", cal(getvar("i"), "+", "1"));
if cmp(getvar("i"), "<", getvar("num-apks")) then
appendvar("text", "cmp\n");
endif;
if cmp(getvar("i"), "<", 5) then
appendvar("text", "cmp(5)\n");
goto("my_app__loop1");
endif;
endif;
# ... display var "text"
If the gotolabel is commented out (as above), both if-statements hit and "text" contains "cmp cmp(5)" as expected. (The goto is ignored because the label is missing, which is okay for me in this case.)
No if I activate the gotolabel, I'd assume the loop to stop after 5 iterations. But the script simply loops forever.
I even look at the source of AROMA installer, but could not easily spot any problem.
Any help?
The text was updated successfully, but these errors were encountered:
Just for the records: I tried storing the variable value into a file and read it form there in the next loop-iteration. While reading and writing the value works, doing this in a loop does not. Even in this test the value of i got reset to zero.
Hi,
thanks for this great tool!
I try implementing a simple "while"-loop like this:
If the
gotolabel
is commented out (as above), both if-statements hit and "text" contains "cmp cmp(5)" as expected. (Thegoto
is ignored because the label is missing, which is okay for me in this case.)No if I activate the
gotolabel
, I'd assume the loop to stop after 5 iterations. But the script simply loops forever.I even look at the source of AROMA installer, but could not easily spot any problem.
Any help?
The text was updated successfully, but these errors were encountered: