Condition w/ relational expression

simplify using if(){

}else{