If statement in template wont work

so what should I put in the if statement instead?