$check = TRUE if ((HOLIDAY) || ($time <= 1800)); #### ((HOLIDAY) || ($time <= 1800)) ? $check = TRUE : $check = FALSE;