Basically I want my bool object variable to be false if the Position Z of my object is greater than or equal to 22 or true if the Position Z of my object variable is less than or equal to 16.
The variable, called isLeft basically indicates whether the platform will be moving left or right (isLeft = true meaning that its traveling left and vice versa). This is so that platform can move back and forth only between its Position Z values of 16 and 22; when the platform reaches 16 itll start moving right till it hits 22 then starts moving left again.
I'm forced to use visual scripting due to my course but they didn't teach us anything yet so I'm unable to use regular scripting for this.
How can I do this?