Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey guys,
Have 2 loops like:
For i = 0 to 2
For j = 0 to 2
Some code
Next
Next;
and output:
1 1 2 1 1 2 2 2
And it works perfect, but I want to generate value through those values with some condition, like i = 1 , and j should also be equal 1, do you know how to do it ?
Desire output
1 1 2 2
I don't understand your requirement, if I and j has to be same, why would you use 2 loops?
you can do something like this but not sure what are you trying to achieve
set a ='';
For i = 0 to 2
Let a =$(i);
For j = 0 to 2
if $(j)=a then
Some code
Next
Next;
I don't understand your requirement, if I and j has to be same, why would you use 2 loops?
you can do something like this but not sure what are you trying to achieve
set a ='';
For i = 0 to 2
Let a =$(i);
For j = 0 to 2
if $(j)=a then
Some code
Next
Next;