02-13-2013 12:55 AM
I need to give one number from a array at a time to a for loop. means the for loop have to execute one number at a time from a array of numbers. How to do it
02-13-2013 01:11 AM
When you connect your array to a for loop, by default the indexing will be activated (so it will work as you said you need), but if you need you can disable the indexing to be able to use the whole array in each iteration of your for loop.
oh, and if the indexing is disabled you will have to tell the for loop how many iteration you want, if it is enabled, it will run once for each element in the array.
hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-13-2013 05:50 AM
This also can be done
02-13-2013 06:00 AM
@Ranjeet_Singh wrote:
This also can be done
I'm sorry mate that wont do it, that just sets up the for loop to run number of times based on the value you index out of the array. Please read the help file for for loop.
02-13-2013 11:09 PM
But question is same only. is in it ?
02-14-2013 03:22 AM
Ranjeet,
@Ranjeet_Singh wrote:
But question is same only. is in it ?
With all due respect, NO.
Please make sure you know what you are talking about before blatantly countering someone else's comment. Can you prove that your vi and TiTou's snippet will do the same thing?