Replaced control flow operators with logical operators