ID:270496
May 30 2006, 9:58 am
|
|
How would you check to see if all objects of a type all have the same var value? For example, you have 5 apples in the world, and they all have a delicious var. How would you check to make sure that all of them don't have delicious=0?
|
proc You could also get rid of the failsafe part and just stick it in the for line, but I felt this way would be better. |
In response to Justin B
|
|
I figured out this on my own but I went out so I didn't have a chance to post it.
var Not a simple for() loop or a bail-out loop if something is wrong, but it compares how many total objects to those who have the var or !var. I believe I was thinking more on how to compare the vars between the five objects instead of looping through them and counting. |
I think something like that?