From a running script I would like to do a check if the script is encrytped or not. This is to seperate behavior between development versions and release versions of a script without having to change variables in the code. So something like:
If( !Script is encrypted(),
//Do bit of code for development version
,
//Do bit of code for release version
)
One way is to check if the script starts with "//-e12.1" which seems to be on the top of all encrypted scripts.
Left(LoadTextFile(IncludeFileList()[1]),8)== "//-e12.1";
But this doesn't work from VSCode as it gives:

so you will always run the release code.