in reply to Re: Weird ?: behavior
in thread Weird ?: behavior

It might also be clearer to you like this:
$xm = ($hour>11) ? "pm" : "am";