[Doubt] Loop's
#1

I have a question about loops, the value that does a loop generate from 1 to 10 for example, and is it checked in a decision statement as the IF is a specific value, or is the all loop?

Example:

PHP код:

new Array[100];
new 
Value[100];
Array[
57] = 1;
Array[
32] = 1;
for(new 
0101i++)
{
   if(Array[
i] == 1)
   {
      
Value[i] = // This "i" will be only "57" and "32" or will be alll loop Value from 0 to 100, saving "1" in all spaces of the array?
   
}

Reply


Messages In This Thread
[Doubt] Loop's - by ApolloScripter - 10.12.2018, 19:24
Re: [Doubt] Loop's - by ItsRobinson - 10.12.2018, 19:36
Re: [Doubt] Loop's - by Threshold - 11.12.2018, 08:02

Forum Jump:


Users browsing this thread: 1 Guest(s)