Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

For Statement

  • Last UpdatedJul 18, 2023
  • 1 minute read

The For...Next loop conditional statement repeats its block of statements a set number of times as determined by the values used with the To clause.

For <CounterName> = <BeginValue> To <EndValue> [Step <StepValue>]

<statement/s>

Next

The counter variable is increased or decreased (by the value stated in the optional Step parameter), with each reiteration of the loop. The counter default is to increment by one if the Step parameter is omitted.

See Also

Control Structures

Related Links
TitleResults for “How to create a CRG?”Also Available in