This example shows a message box if a reference to component #WordApp exists:
If_ref Com(#WordApp) Is_Not(*null)
Use Builtin(MESSAGE_BOX_SHOW) With_Args(OK OK Information 'Reference' '#WordApp is referenced.')
Endif