Var with expression

Coded if statement with variable expression