VoxCommando

VoxNastics (User Guides and Mods) => Tips and Tricks => Topic started by: Haddood on July 05, 2015, 04:48:35 AM

Title: Boolean AND in Logical blocks
Post by: Haddood 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