Copy link to clipboard
Copied
Thanks to the help from this community I am getting less inept at javascript programming. Now maybe I can get help one more time.
How do I set an "initial value" for a global variable? For example, I need the default value to be "true" as the script begins to run.
I hope that question makes sense.
Copy link to clipboard
Copied
Can't you set the variable at the begin of the script?
Copy link to clipboard
Copied
You can declare variable at Document level.
EDIT: Sorry I missread. As Bernd said declare variable at begining of script or if you need to access variable in different scripts, then use at document level.
Copy link to clipboard
Copied
Can't you set the variable at the begin of the script?
Copy link to clipboard
Copied
You can declare variable at Document level.
EDIT: Sorry I missread. As Bernd said declare variable at begining of script or if you need to access variable in different scripts, then use at document level.
Copy link to clipboard
Copied
Yes, I finally figured out how to get some script added at the document level.
This is a pretty slick product but the documentation leaves something to be desired. I went through at least a half dozen google hits before one of them used a screen shot to get me to the right place.
Thanks for the reply.

