Hello, I am trying to find a node or work flow, I thought it was a switch node but I can’t seem to find it or the combination of nodes to use. Basically if my object is at a Z Axis position of 0, I need to pass a value of 1. If it is not 0, then I need to pass the value of the Z-axis.
Logic operators are 1 and 0 and I use a Compare node with a Constant node set to 0 and the z axis of of the object. When they are both 0 value, it returns a 1, else a 0. I am trying to solve a divide by 0 issue.
So basically, if the values are same as 0, return a value 1, else return the x value from the object. I am not sure what switch to use to control this with Xpresso.
Thanks!

