This expression:
CODE
if ($itemtitle[title] == "Adult Coupon" > $itemtitle[title] == "Adult Ticket")
is actually saying
QUOTE
if the value stored in itemtitle at index title equals Adult Coupon is greater than the value stored in itemtitle at index title equals Adult Ticket.
There are several boolean expressions that cannot resolve in that manner.
Are you trying to determine if the number of Adult Coupons is greater than Adult Tickets?
Is the value $itemtitle[title] a number or text? Also, is title an associative array index? If so, it should be 'title'. I know it works the way it is, but it's now an undefined constant instead of a string. Or is title a variable? If so, you should use $title.
Are you looking to have the expression evaluate to something like
CODE
if(7>6)
?
If that is the case, you'll have to determine the amounts before the if condition...unless $itemtitle[title] is supposed to be a number.
Right now
CODE
$itemtitle[title] == "Adult Coupon"
and
$itemtitle[title] == "Adult Ticket"
will evaluate to either true or false, leaving you with one of the following combinations
CODE
if(true>false)
if(false>false)
if(true>true)
if(false>true)
which in themselves would evaluate to a true or false. I don't think that's what you're looking for.
Can you provide an example of what you expect to see when all the variables in that statement are replaced by their values? Should it look like
CODE
if(7>6)
?