03-28-2017, 05:50 PM
I have done If System::Equals many times before but I am stumped on why this will not run.
Simply, I have a triggered event off my phone when connected to my network to fire a tasker task via the autoremote function.  
BUT
If System::Equals(NetworkMonitor.EricPhone, True, No Case)
   Do global action stuff for tasker if connected to home network
Else
  Do global action stuff if phone not connected to home network.
End
This does not work...Phone is connected to network and field is True but it skips the If True section and goes to the Else line.  I then added and If False statement to the Else line to see if the False would fire...nope.
Here is the full code:
If 
System::Equals
    P1=NetworkMonitor.EricPhone
    P2=True
    P3=No Case
System:
oGlobalAct
    P1=/User/Misc/SendARMsgYps
    P2="recloopvar","run"
System::WaitTimer
    P1=0
    P2=5000
System:
oGlobalAct
    P1=/User/Misc/SendARMsgYps
    P2="recloop","on"
Else
If 
System::Equals
    P1=VarDrvr.Text
    P2=False
    P3=No Case
System:
oGlobalAct
    P1=/User/Misc/SendARMsgYps
    P2="recloopvar","stop"
Else
End
End
Running version 5.07.  
Thoughts?
Simply, I have a triggered event off my phone when connected to my network to fire a tasker task via the autoremote function.  
BUT
If System::Equals(NetworkMonitor.EricPhone, True, No Case)
   Do global action stuff for tasker if connected to home network
Else
  Do global action stuff if phone not connected to home network.
End
This does not work...Phone is connected to network and field is True but it skips the If True section and goes to the Else line.  I then added and If False statement to the Else line to see if the False would fire...nope.
Here is the full code:
If 
System::Equals
    P1=NetworkMonitor.EricPhone
    P2=True
    P3=No Case
System:

    P1=/User/Misc/SendARMsgYps
    P2="recloopvar","run"
System::WaitTimer
    P1=0
    P2=5000
System:

    P1=/User/Misc/SendARMsgYps
    P2="recloop","on"
Else
If 
System::Equals
    P1=VarDrvr.Text
    P2=False
    P3=No Case
System:

    P1=/User/Misc/SendARMsgYps
    P2="recloopvar","stop"
Else
End
End
Running version 5.07.  
Thoughts?
System: WHS, UPB, Plex, Elk
Drivers: Autopatch, DataLog DB, DTV IP, GC-100, IRA, Logic Server, Variable Driver, Weather Underground
Drivers: Autopatch, DataLog DB, DTV IP, GC-100, IRA, Logic Server, Variable Driver, Weather Underground