I gave you the fix already, just thought we were trying to get you to understand it. The fix is replace : 'array.at(param)' in the first box with 'param'. The condition you are using, the X position acts as like saying array.at so you don't need to use it again. I don't know how else to explain it.
I think if you do want to write it in the format you have now you could use system compare 2 values haha.