IsPreview()
true if the current player is the Opus Editor preview and false if it is any external player type.
This function tests if the current player is the Opus Editor in Preview mode. It is useful for performing actions while developing a publication (for example; showing variable values in a new window) that you do not want to happen when the publication is published.