Check if value matches any elements in an array

What would be the best way to check a value against all the float values in an array? Basically I have a rotating object, rotated by the player which I have pulled the rotation value from and I want to compare the value to a load of set values within an array and when it matches one of them it fires off an event. I know I can use the ==float to a branch for each individual value outside of an array but this seems long-winded for a lot of values. I was wondering if there is a node that already does this to an array?

1 Like

Thankyou! This is what i was looking for

Rotation values are not very exact. You should rather search in the array for an element within a range around the search value.


Tolerance > 0, like 0.1 or 0.01.