Page 1 of 1

condition, if value is NOT

Posted: Tue Oct 30, 2012 8:23 pm
by daferra
try to figure out how I need to make a event with a value, boolean NOT

I have two devices (google latitude) that I want to use to put the system on "soft" away.

I created a marker "home" so that I can monitor if we, our mobile devices are home. I now want to make a event that when device x = NOT home.

Dev_75_Value == "Home" gives me a evaluation "true" when I am home
Dev_75_Value Not "Home" or Dev_75_Value = Not "Home" don't give me "false" when I am not at home.

Can someone explane to me how I create a event that can do this?

Re: condition, if value is NOT

Posted: Tue Oct 30, 2012 10:15 pm
by j.hoekstra
Wouldn't the operator != or <> do the same?
I programmed a few conditions with *_Value <> 0...

I would advise to make a trigger in the form of:

Code: Select all

if [device][lastseen]
(radiobutton) <> " "(that is double-quote_space_double-quote)
Then condition where you evaluate a device(in this case the same device) via:

Code: Select all

Dev_nn_Value <> "Home"
Then the action:

Code: Select all

Set [device] [Value1] To On 

Re: condition, if value is NOT

Posted: Thu Nov 01, 2012 10:00 pm
by daferra
Thanks for explaining to me.

I first tried the operator != but this is not working. The operator <> is working great. I now build it with <>

thanks again