Author Topic: Boolean AND in Logical blocks  (Read 2098 times)

0 Members and 1 Guest are viewing this topic.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Boolean AND in Logical blocks
« on: July 05, 2015, 04:48:35 AM »
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