for #index1=1 step=1 to=3 section=test1 // #index=1,2
// result lines are visible
set form=1 name=res1 visible=1
set form=1 name=res2 visible=1
set form=1 name=res3 visible=1
set form=1 name=b1 visible=0
set form=1 name=b2 visible=1
draw form =1
end
--------------------------------------
// called 2 times
--------------------------------------
section test1
#sum1=#sum1+10
for #index2=1 step=1 to=4 section=test2 // #index2=1,2,3
end section
---------------------------------------
// called 6 times (2x3)
---------------------------------------
section test2
#sum2=#sum2+100
for #index3=1 step=1 to=5 section=test3 // #index3=1,2,3,4
end section
----------------------------------------
// called 24 times (2x3x4)
----------------------------------------
section test3
#sum3=#sum3+1000
end section
-------------
section back
call script=30_loop
end section
end scene
Warning: getimagesize(screens/30_2_1.jpg): failed to open stream: No such file or directory in /var/www/web144706/html/baselscript/examples.php on line 442 Warning: getimagesize(screens/30_2_2.jpg): failed to open stream: No such file or directory in /var/www/web144706/html/baselscript/examples.php on line 442