Difference between revisions of "Category talk:Conditions"

Jump to navigation Jump to search
282 bytes removed ,  09:24, 11 February 2015
imported>Falconerd
imported>Falconerd
 
Line 77: Line 77:
== Odd number of Conditions ==
== Odd number of Conditions ==


I noticed that all the examples are of an even number of conditions. I am unfortunately having a problem visualising this stuff so I though I'd ask. Essentially, I want to check for this: ('''''A''''') OR ('''''B''''' AND '''''C'''''). However, as OR is always grouped, I'd get ('''''A''''' OR '''''B''''') AND '''''C'''''
The conditions I need are as follows: ('''''A''''') OR ('''''B''''' AND '''''C'''''). Now the only way I've managed this is with a whopping 6 conditions.


I know I could make a 4th condition that always returns true and then use the method shown in the examples. However, that ends up being a total of 8 conditions. I hope I'm just missing something very obvious.
With context:
: A = 4 Pieces of Heavy Armour
: B = 3 Pieces of Heavy Armour
: C = Heavy Shield


Any help would be appreciated, cheers.
: Problem: Actor has either 4 pieces of heavy armour or 3 pieces of heavy armour and a shield
 
: Solution: ('''''A''''' OR '''''B''''') AND ('''''A''''' OR '''''C''''') AND ('''''!A''''' OR '''''!B''''')
: I have found what I think is the solution. ('''''A''''' OR '''''B''''') AND ('''''A''''' OR '''''C''''') AND ('''''!A''''' OR '''''!B''''' OR '''''!C'''''). I'm going to test this and see if it works. --[[User:Falconerd|Falconerd]] ([[User talk:Falconerd|talk]]) 2015-02-10T22:04:51 (EST)
: Explanation: Since A and B cannot be true at the same time, this works. I'm wondering if anyone knows a better way to do this.
Anonymous user

Navigation menu