December 3rd, 2012, 03:24 PM
Join Date: Dec 2008
Location: On the sofa
Device(s): Nexus 4 (stock),
Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided
Thanked 102 Times in 86 Posts
I use OR as with the following example:
If I have a mobile data connection I set my variable %MDATA = 1.
If I have a WiFi connection I set my variable %WDATA = 1.
In tasks where I need a data connection I can then check with:
IF %MDATA + %WDATA > 0
In my experience mathematical checks are the best way of implementing these types of tests.
Monkey see, monkey do.