Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Thore on August 15, 2019, 07:31:46 AM

Title: Logic: One Bool is True AND One Bool is False
Post by: Thore 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 (https://hutonggames.fogbugz.com/default.asp?W471) (not well named, I recreated it as I was looking for an Bool All False)
Bool All True (https://hutonggames.fogbugz.com/default.asp?W469)

Title: Re: Logic: One Bool is True AND One Bool is False
Post by: 600 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 :D This definitely simplify things!
Thank you!
Title: Re: Logic: One Bool is True AND One Bool is False
Post by: Thore on August 15, 2019, 02:32:21 PM
Hi,

I'm glad it's of use :)
Title: Re: Logic: One Bool is True AND One Bool is False
Post by: hoyoyo80 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:)
Title: Re: Logic: One Bool is True AND One Bool is False
Post by: Thore 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.

Title: Re: Logic: One Bool is True AND One Bool is False
Post by: hoyoyo80 on August 18, 2019, 02:27:17 AM
That was quick ;D Contributor like you should earn badges 8)
Title: Re: Logic: One Bool is True AND One Bool is False
Post by: jeanfabre on September 11, 2019, 02:16:55 AM
Hi,

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

BoolMultiCondition

(https://i.imgur.com/hE8Hxv4.png)

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

Bye,

Jean