At times, you may want to have your app detect whether you are in an area of network coverage. Perhaps you want to do different things when you have cellular or WiFi coverage. Here's how you can do it.

The expression [[sys:networkStatus]] will evaluate to one of three values nonecell or wifi. By coupling these values with the When setting in the scripted actions, you can selectively have different thing occur according to the network coverage at that moment.

If you want to test for any network coverage at all, just compare the expression to the value none. When they are equal, there's no coverage. When they are not equal, there's ether WiFi or cellular coverage. Of course if want to differentiate between each of the cases you may check for each of the 3 values.

Here is one example using the expression in an action: