Create an expression and put in your variables like so: Code: $x = myCube.translateX; //or whatever, same for y, z, c. if ($x >= $y && $z >= c){ $B = 1; } else { $B = 0; } I'm sure you could do this with nodes, but the expression seems pretty straightforward.