Works with if statements