# playMaker

### Author Topic: Logic: One Bool is True AND One Bool is False  (Read 1460 times)

#### Thore

• Sr. Member
• Posts: 473
##### Logic: One Bool is True AND One Bool is False
« on: August 15, 2019, 07:31:46 AM »
Hi, I couldn't find another way to do this, so I made a simple action that checks two bools. If one bool is true and one is false, the condition is met, and it fires one event, and if not, fires another event. Of course, you can use either event or both.

Update: as requested, I adapted a version with any number of bools to check the condition. The basic version is still useful when you need to check just a pair.

Also See:
Bool None True (not well named, I recreated it as I was looking for an Bool All False)
Bool All True

« Last Edit: August 17, 2019, 05:27:19 AM by Thore »

#### 600

• Beta Group
• Hero Member
• Posts: 638
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #1 on: August 15, 2019, 10:43:46 AM »
Hello, this is awesome! ... unbelievable. I needed this like 6 hours ago and made custom logic with bools This definitely simplify things!
Thank you!

#### Thore

• Sr. Member
• Posts: 473
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #2 on: August 15, 2019, 02:32:21 PM »
Hi,

#### hoyoyo80

• Full Member
• Posts: 116
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #3 on: August 16, 2019, 06:34:48 PM »
Love this...Any chance to made it multiple comparison using Size..e.g Size 3 and it can compare 3 like true,true,false. But yours should be good:)

#### Thore

• Sr. Member
• Posts: 473
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #4 on: August 17, 2019, 05:27:45 AM »
Love this...Any chance to made it multiple comparison using Size..e.g Size 3 and it can compare 3 like true,true,false. But yours should be good:)

I attached it at the top.

#### hoyoyo80

• Full Member
• Posts: 116
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #5 on: August 18, 2019, 02:27:17 AM »
That was quick Contributor like you should earn badges

#### jeanfabre

• Hero Member
• Posts: 15398
• Official Playmaker Support
##### Re: Logic: One Bool is True AND One Bool is False
« Reply #6 on: September 11, 2019, 02:16:55 AM »
Hi,

the ecosystem already has a lot of similar actions, for example

BoolMultiCondition

which is more flexible because you have any number of conditions.

Bye,

Jean