Hi all,
Getting an unexpected T_BOOLEAN_OR message and I know it's in the order of my parenthesis, but I think I need another set of eyes on this...
My code is:
If (($_POST["monday_closed"] != "on") && (($_POST["monday_start"] == "") || ($_POST["monday_finish"] == ""))) ||
(($_POST["tuesday_closed"] != "on") && (($_POST["tuesday_start"] == "") || ($_POST["tuesday_finish"] == ""))) ||
(($_POST["wednesday_closed"] != "on") && (($_POST["wednesday_start"] == "") || ($_POST["wednesday_finish"] == ""))) ||
(($_POST["thursday_closed"] != "on") && (($_POST["thursday_start"] == "") || ($_POST["thursday_finish"] == ""))) ||
(($_POST["friday_closed"] != "on") && (($_POST["friday_start"] == "") || ($_POST["friday_finish"] == ""))) ||
(($_POST["saturday_closed"] != "on") && (($_POST["saturday_start"] == "") || ($_POST["saturday_finish"] == ""))) ||
(($_POST["sunday_closed"] != "on)" && (($_POST["sunday_start"] == "") || ($_POST["sunday_finish"] == ""))) {
// ... Stop
}
So, I'm basically trying to do that if the first condition is true, as well as the 2nd or 3rd condition is true, for each group. To shorten this:
If ((a = a) or ((b = b) or (c = d))) or ...
Can someone point out where I'm going wrong here?😕
Cheers,
Jesse