Detecting Debug

I need

if Debuggin (running in debuger) then
this
else
that
end

I know there is a way to do this, just can’t remember it find it.

Thanks

Rich

if DebugBuild then
   …
end if

or

#if DebugBuild then
   …
#endif