Skip to content

for (Looping & Flow Control)

Compatible with:
  • Purpose
  • This command is used to iterate a block of code.  Iterates the block of code until the 'condition' evaluates to false, performing the 'incrementer' after each iteration. 'for' command must always have 'endFor' at the end of the block.  This command expects initializer; conditional; incrementer and if anyone of the value is missed, the command fails
  • Syntax
  • for(initializer; conditional; incrementer)
  • Target
  • initializer; conditional; incrementer
  • Ex: i=0;i<n;i++(n can be any integer that represents how many number of times loop should iterate)
  • Value
  • N/A
  • Return Value
  • N/A

Example(s):

Click here to see the example


 

Feedback and Knowledge Base