Is there a logic or IF function to check if internet is connected?

Would like to add in logic to display another component or a message if there is no internet connection.

This is required to hide the http:// error message shown in Webview and show something more presentable and user friendly.

Any other ideas or better approach?


There is a system variable (available in the formula editor) systemVars.networkStatus with one result being "none". So you could use a formula IF(systemVars.networkStatus == "none", message_for_network_error, message_otherwise) to toggle the content of an error.

You can also use an IF logic function and set the condition to systemVars.networkStatus == "none" and the use the logic functions Hide component and Show component found in the Flow function market to toggle what components are shown.

Thanks one million, I will look into that today.