10.12.2018, 19:24
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:
Example:
PHP код:
new Array[100];
new Value[100];
Array[57] = 1;
Array[32] = 1;
for(new i = 0; i < 101; i++)
{
if(Array[i] == 1)
{
Value[i] = 1 // 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?
}
}