Conditional doesn't trigger error, but doesn't work?
View Single Post
08-17-2008, 03:31 AM
Join Date: Aug 2008
Think of it like maths - everything in brackets gets evaluated first i.e.
In the same way the expression in brackets gets evaluated before being compared to $list_type. Since neither 'category' or 'versions' evaluate to false, the result of ('categories' || 'versions') is true. This is what then gets compared to $list_type.
I would read it as:
IF variable NOT EQUAL TO (string OR string)
in the same way as you, but I would see that:
(string OR string) == true
since everything in brackets gets evaluated first.
Last edited by Theo : 08-17-2008 at
. Reason: Clarification
View Public Profile
Send a private message to Theo
Find More Posts by Theo