News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

Boolean AND in Logical blocks

Started by Haddood, July 05, 2015, 04:48:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haddood

I often find I need to use AND in Logical blocks ... for example;
if the action = entered and location = home then unlock the door
till now I solved these kind of situation with work around ... that I did not like or complicated ...(VC do not offer AND in traditional way)

as I was working on integrating IFTTT maker channel with VC I realized that it is very easy to do that without any work around ... by creating a logical block (assuming action is passed as payload 1, and location as payload 2):

if (A)==(B)    {1} {2}   ----  entered home .... and voila, we have the AND operator ...
not sure if this was mentioned before in the forums or it is in the wiki ... but it made my life much easier


When Voice command gets tough, use hand gestures