playMaker

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

Thore

  • Sr. Member
  • ****
  • Posts: 480
Logic: One Bool is True AND One Bool is False
« on: August 15, 2019, 10: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, 08:27:19 AM by Thore »

600

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

Thore

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

I'm glad it's of use :)

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Logic: One Bool is True AND One Bool is False
« Reply #3 on: August 16, 2019, 09: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: 480
Re: Logic: One Bool is True AND One Bool is False
« Reply #4 on: August 17, 2019, 08: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:)

Okay, I went ahead and made this :)

I attached it at the top.









hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Logic: One Bool is True AND One Bool is False
« Reply #5 on: August 18, 2019, 05:27:17 AM »
That was quick ;D Contributor like you should earn badges 8)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Logic: One Bool is True AND One Bool is False
« Reply #6 on: September 11, 2019, 05: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