If function in an expression field ?

Hello,

Is it possible to use the If statement in an expression field? For example, If X > 10, F = 0.

Thank you in advance for your help.