How to tell if running on a phone vs. Desktop/iPad

How to tell if running on a phone vs. Desktop/iPad

  
I have an app that runs on the desktop and the iPad. Now it needs to run on a phone (iPhone and Android). How can I tell whether it's being run on a phone vs. a desktop/iPad?
Hi Gerry,

You can either check the GetUserAgent() built-in function or use the Richwidgets.IsMobileBrowser screen action.

Cheers,
Tiago Simões