Change an if conditions from "equals 1" to "equals true"