How to check if an application runs in Xojo Cloud

Dear All

Does anyone know how can I easily check during runtime if an application uses/runs under Xojo Cloud?
Any advice highly appreciated.

Best regards from Zurich
Marco

[quote=327080:@Marco Vecellio]Dear All

Does anyone know how can I easily check during runtime if an application uses/runs under Xojo Cloud?
Any advice highly appreciated.

Best regards from Zurich
Marco[/quote]
There is a constant available named TargetXojoCloud which will only return True when an app was built and deployed to Xojo Cloud. You can either use that in a regular “if” statement, or as part of a compiler directive:

[code]#if TargetXojoCloud

#endif[/code]

To include/exclude code from the built app entirely.

Thank you Greg for this information.

Best regards, Marco