[mythtv-users] Boolean custom recordings in mythweb
David Brodbeck
gull at gull.us
Wed Sep 26 21:09:04 UTC 2007
On Sep 26, 2007, at 1:25 PM, Drew Tomlinson wrote:
> Wouldn't the missing AND have to be an OR?
>
> program.title LIKE "%MotoGP%" AND (program.title NOT LIKE "%125%" OR
> program.title NOT LIKE "%250%")
Nope. If you do it that way, it will be recorded unless it contains
*both* 125 and 250.
Remember, an AND becomes the equivalent of a negated OR when you
negate the two tests. In other words:
A AND ((NOT B) AND (NOT C))
is the same thing as:
A AND NOT (B OR C)
Write out a truth table for the different possibilities of B and C
and you'll see why.
More information about the mythtv-users
mailing list