Development mode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
matthellstrom
Posts: 31
Joined: Mon Apr 27, 2015 3:09 pm

Development mode

Post by matthellstrom » Fri May 08, 2015 11:09 pm

I thought I saw this somewhere, but I can't find it for the life of me.

Is there a way to just do something in development mode, for instance open a results window, which when you build the standalone version it doesn't open? I thought I saw something like

if development then
...
end if

but I can't find it anywhere.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Development mode

Post by dave.kilroy » Fri May 08, 2015 11:33 pm

Try this:

Code: Select all

if the environment = "development" then 
  --do stuff
else
  --do other stuff
end if
"...this is not the code you are looking for..."

matthellstrom
Posts: 31
Joined: Mon Apr 27, 2015 3:09 pm

Re: Development mode

Post by matthellstrom » Mon May 11, 2015 8:01 pm

OK, that seems to work great. Thanks!

Post Reply