Checking if 10 equal to 10 returns false?

The integer 10 apparently does not equal the integer 10. What am i doing wrong???

Seems weird. It could be a timing issue: one of the values isn’t 10 when the branch is evaluated but by the time it breaks execution, it gets set to 10. That would mean there’s multi-threading involved. You could try explicitly setting both values to 10 before calling the if – just as a test to see if the evaluator is completely broken (which is doubtful).

so… your checking the length of the array, that checks How many things are inside the array. You have to use GetACopy to get the value of it. Do you have 10 levels? 9? 11? Arrays start counting at 0, but the length starts counting at 1.