# Is it possible to put an if statement into the scripted expression of a driver?

If the y location of a certain object is greater than 0, I want to add a fixed amount to another object's driven channel. How do I achieve that?

valueIfTrue if isConditionTrue else valueIfFalse

This is known as a ternary conditional operator see: