How to do the for loop in org here it is structure and it is quite easy commands inside for all are
executed if condition is true.
At the end of each loop increment or decrement part is done.
And before any command in first loop is executed in its position of some variables can be done.
If this description is hard to understand Don't be afraid.
Here is some example in interlineation part we have I equals one.
So that means before any command in for loop body will be on a value of variable I will be set to 1
then we are asking a value of variable i is less than or equal to 10 Yes it is.
So the for loop body will be executed and will bring to screen how fold by number 1 Danto value of variable
i is incremented by 1.
And again we are asking if value of variable i is less than or equal to 10.
Yes because 2 is a less than 10.
And then by the fourth row is executed and we are continuing until the condition is through OK.
Let's practice for loop on some example but Firstly check how our final table looks like.
Let's say if we want for each record low for each field.
So we need to create in main or section for rope.
So in Maine where exception played for top
and dead for a loop they'll go through each field
and how many times this loop will be random number of fields.
So this is why we are specifying in condition I have less than or equal to number of fields.
And inside for a body vivo print field.
That means that we need to specify print
field
then we will print number of that field which is represented by I.
And then the value of a field which is represented by the last time I
if here at hand is we see the output first record has filled one name field to age fill three unit.
Second the record has Field 1 Peter Field to 50 and field 3 I-T and so on.
So one time or for each record which is in our case the fourth line.
So for each line in the loop Sorry times as number of results is equal to three in each line.
And of course in each loop the printed fill a number of field and the value of the field.