Hi Nick Leo,
There is no specific EGL-statement that will return whether you are in "design" or "preview"-mode.
Depending on your usecase, I'd suggest you call a service in the "start"-function of your RUI, which returns a value or structure that you use to control what's being displayed.
Regards,
Bernd van Oostrum
MAINBRIDGE