alexpat
14 years agoOccasional Contributor
Increment a variable by 1?
I have a loop I only want to run a maximum of 10 times. How do I get a variable to increase everytime the loop runs?
As far as I can see this should work but I obviously have some syntax incorrect somewhere.
if expectFailure then
dim i
i = 0
do
aqUtils.Delay 100
set obj = browser.NativeWebObject.Find("class", "confirmboxcont")
set i = i + 1
loop until obj.Exists or i >= 10
end if
As far as I can see this should work but I obviously have some syntax incorrect somewhere.