Detecting if I am in the IDE or not

I’ve asked this before, but for the life of me i can’t find it :\

how do you figure out of you are in IDE/DEV mode or actually in a external player?

i no longer have access to the code which i wrote which made use of this, but i seem to recall it being something like Application.name but that doesn’t do anything :\

Thanks in Advance
-Echo