Ok as I understand it the "|" operator is basically an if-else statement that returns 0 or 1. It does not work with just pure numbers, it only works with conditions? How I implement this to check an array value I have no idea.
Did it your way, can't use array because there is no way of checking the array value in expression like you could do it with tilemap. So I used tilemap and came up with this:
This is quite insane in my opinion, all because "or" could not be defined correctly.
I would like to do the floor calculation beforehand and keep it in an array to save computation time since there is a lot to check like this.