I have 2 condition definations, one checks whether the point is in the region the other checks whether the returned value from 'point is in the region' is no region or is a region. if its a region it will return the value of the region that I've set, if its no region then it returns a value of .0001. I've narrowed the problem down to the first condition defination where it checks if the point is in region.
For each integer (TmpInt) from 0 to Total Amount of Regions with incements of 1
If the point(parameter) is in region(TmpInt)
return region(TmpInt)
else
return no region
return no region
So basically it doesn't seem to return the region(TmpInt) correctly. It only returns region(0) but if i place a raw number like return region(4) it works. I've tried global variables and local and it doesn't want to return that region(tmpInt). Only if I do... if thens for every region(0) to say region (11) then it will work perfectly. So it see there's some glitch where it doesn't like to return that tmpint variable.
I have 2 condition definations, one checks whether the point is in the region the other checks whether the returned value from 'point is in the region' is no region or is a region. if its a region it will return the value of the region that I've set, if its no region then it returns a value of .0001. I've narrowed the problem down to the first condition defination where it checks if the point is in region.
For each integer (TmpInt) from 0 to Total Amount of Regions with incements of 1
If the point(parameter) is in region(TmpInt)
return region(TmpInt)
else
return no region
return no region
So basically it doesn't seem to return the region(TmpInt) correctly. It only returns region(0) but if i place a raw number like return region(4) it works. I've tried global variables and local and it doesn't want to return that region(tmpInt). Only if I do... if thens for every region(0) to say region (11) then it will work perfectly. So it see there's some glitch where it doesn't like to return that tmpint variable.
Any solutions?
What make you say that? i overuse for loops nested 3 times and they are correct all the time
Ignore the spammer.