in reply to exiting a if loop
Turnsteps post is the last one that got it right, but if you want to use the ternary operator then this does it:
$check = HISTORY || $time <= 1800 ? TRUE : $check; [download]
Nuance