Page 1 of 1

Running in IDE or as standalone

Posted: Fri Aug 19, 2011 6:45 pm
by ibe
How can I determine is the code being run in the Livecode IDE or as a standalone?

Re: Runninin IDE or as stadalone

Posted: Fri Aug 19, 2011 7:06 pm
by FourthWorld
See the "environment" function in the Dictionary, e.g.:

if "dev" is in the environment then
-- do IDE stuff
else
-- do standalone stuff
end if

Re: Runninin IDE or as stadalone

Posted: Fri Aug 19, 2011 7:11 pm
by ibe
Thanks Richard. I was looking for runtime/standalone/etc but didn't think of environment.