Scripting Guide > Programming Methods > Encrypt and Decrypt Scripts > Encryption and Global Variables
发布日期: 09/18/2023

Encryption and Global Variables

Encryption alone does not hide global variables and their values. A Show Globals() command displays them normally. If you want to hide global variables in an encrypted JSL script, you can give them special names.

Any global variable whose name begins with two underscore characters (__) is hidden, and Show Globals() displays neither its name nor its value. For example:

myvar = 2;
__myvar = 5;
Show Symbols();

// Globals

myvar = 2;

// 2 Global (1 Hidden)

This strategy works whether your script is encrypted or not.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).