It is working now. I had "," instead of "+" in the alert statement.
I have attached the code that i used that works. The compiler did not give an error on the number of arguments being wrong for the alert statement.
It does work with the test button.
Sorry for bothering you.
What version Java script are you using?
- Code: Select all
setEnv("BRU_ENV", "xxx");
var YYY = getEnv("BRU_ENV");
alert ("YYY = " + YYY + " should be show as xxx"); // Should show xxx in alert ??????????
var EnvPath = getEnv("PATH");
alert ("EnvPath = " + EnvPath + " should be show as the PATH environment "); // Should show "the PATH" in alert ??????????
// Here we just assign ENV to the result of askOnce with a prompt and default value.
var ENV = askOnce("Enter new name for the file:", "xxx"); // SLB ask once is not working
alert ("ENV = " + ENV + " should be show as the default xxx" ) ; // Should show "xxx" in alert if you take the default ?????????