|
forThe for loop allows iteration a fixed number of times. Note that scripts will only execute a maximum of 5,000 commands before generating a runtime error. This is to keep any script from running out of control. You can use the 'begin' keyword in place of the statement to execute multiple commands on each iteration. Be sure to terminate the loop with an 'end' statement: for X = 1 to 5 begin .... end usage: for [target] = [expr1] to [expr2] [step [expr3]] [statement] [;] [statement...]parameters:
examplesfor X = 1 to 5 http get "/execute.php?cmd=" + $X Interate from 1 to 5, assigning the value of each iteration to X. On each iteration, execute an http statement giving the value of X to the server script being executed. for X = 5 to 1 step -1 http get "/execute.php?cmd=" + $X Interate from 5 to 1, assigning the value of each iteration to X. On each iteration, execute an http statement giving the value of X to the server script being executed. Alertra Script Language: Language Reference |
Not logged in. |
|
Web Site Monitoring · Security Scan · Features · FAQ · Pricing · About Us · Contact Us · Site Map |
|
Copyright © 2000-2008 Alertra, Inc. All rights reserved. Please read our privacy statement and our terms of service.