-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXEC command examples do not work. Should use var instead of const #41
Comments
|
Same for me : I cannot reproduce it on my side. |
@guigrpa Koresar is right, if you declare your variables as const in +++EXEC +++ you will be able to use them only in the exec script. If you want to access these variables in other +++EXEC +++ scripts or +++INS +++ you have to declare them more globally with var.
To resume:
does not work
works |
@razyon I see! Thanks for the clarification. I guess the original post was missing the key part: "from another EXEC block". #48 has just been merged explaining this in the docs. It's normal that variables declared with |
Apologies for the misleading issue description. |
I have just found out that if I use
+++! const a=1;+++
command does not work. ThrowsUnknown symbol 'a'
.But as soon as I changed it to
+++! var a=1;+++
the further usage of thea
variable works.Is it a known thing?
The text was updated successfully, but these errors were encountered: