Home > Back-end > (want to see, but still have some small problem) about using a for loop sequence table query element
(want to see, but still have some small problem) about using a for loop sequence table query element
Time:10-30
This is a for loop statement that do not add a semicolon, arguably should return the location query element My order in the table 'x' position is 0, but the return value is: According to its position is 120 But if after the for loop and the semicolon Can return right 'x' position, why? Is I to the for loop is wrong? Should not then compare conditions, if the data [I]=x output I? Why want to add a semicolon after the for loop to output the correct value? Hope someone can to nudge me, thanks a lot
CodePudding user response:
I vaguely seems to understand, but can't figure out why not add a semicolon will output 120