More boolean logic?

Post your questions and help other users.

Moderator: Martin

Post Reply
amix
Posts: 11
Joined: 01 Mar 2013 12:03

More boolean logic?

Post by amix » 20 Sep 2013 06:51

Hi,

I made a flow like this:

on display status=off:
if (time period =(10pm-8am))
if (sound profile=normal)
if not (app task running=radio.player)
then set speaker=silent

Now I want to be able to check for other multi media apps running, too, not just, as in this case, TuneIn Radio. So, I would need a logical OR in the flow, which I could combine to a single true or false result.
Like so:

if not ((app task running=radio.player) or (app task running=mp3.player))
Any ideas on how to do that?

Thx, Andreas

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: More boolean logic?

Post by Martin » 20 Sep 2013 08:31

Hi,

There exists a condition Music Active which might be helpful in this case.

You can add multiple conditions to create OR, AND, XOR like this:

AND:
Image
OR:
Image
XOR:
Image


Regards,
Martin

amix
Posts: 11
Joined: 01 Mar 2013 12:03

Re: More boolean logic?

Post by amix » 20 Sep 2013 22:28

Wonderful! "Music Active" did it!

Also, thanks for the examples, very much appreciated.

lailoken
Posts: 9
Joined: 09 Nov 2013 14:54

Re: More boolean logic?

Post by lailoken » 16 Nov 2013 19:25

My flows don't draw this way... A condition seems to split both its true and false at the bottom, making flows difficult to follow.

Or is this a problem in this particular flow of mine?

(See attached screenshot)

Not the more location I add the more incomprehensible my flow becomes - and I am unable to re-arrange it so that it makes more sense.

Any hints what I could do differently?
Attachments
Screenshot_2013-11-16-13-37-37.png
Screenshot_2013-11-16-13-37-37.png (135.54 KiB) Viewed 15455 times

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: More boolean logic?

Post by MURTUMA » 16 Nov 2013 20:56

Tap the link between two objects. You'll see two (or one depending where it is connected) buttons but also yellow dots around the objects it's connected to. Try pressing those dots and you'll see the magic happening.

Post Reply