#How can if check if a list variable contains ANY objects that have a specific tag without a loop?
1 messages · Page 1 of 1 (latest)
you will have to use a loop of sorts to accomplish what youre wanting to do
note: a loop of sorts
it doesnt have to be explicitly the stock for loop chips
you could make your own loop that does the operation over multiple frames when necessary
dang, ty anyway
If the list gets made during gameplay, you could throw a "Cubes Changed" event receiver in there?
Can’t you just use a list contains??
Yes, but you'd have to do it for each of them.
By "loop" they mean the loop output of a for or for each chip (i think)
Yes, but the issue is, they want to see if ANY object has the tag "Red"
List Contains will only check if a specific item is contained in a list, not if any object in a list has a tag
Oh right, if these are the only objects in the room that will ever get the "red" tag, you could always just use a "get all with tag" and a list get count, then an equals