I have a routine that captures the WIFI name of whatever wifi I'm connected to. The issue is when I want to compare it to a specific list or wifi for an if / then statement.
If %WifiName2 -R %HomeSSID Then
<actions>
End If
or
If %WifiName2 ~R *specific wifi* Then
<actions>
End If
The issue is that this will always fail, even if I get the wifi name directly before the If statement. If I change the statement to If %HomeSSID -R %WifiName2, then everything works fine and the task fires off like it's supposed to.
Why is that? I clear the WifiName2 before getting the new WIFI name, just to be sure I'm not holding onto old data, just as a precaution.