on 11-24-2020 5:05 PM
How can I check for the existence of a substitution parameter in a script? No matter what I try, I always get the error "Substitution Parameter [$my_variable] is not defined". I want to define a substitution parameter in my production repo, but not lower lane repos. Then, I want to check for its existence, so that if I am in a lower lane, I do not execute a portion of a script. In python, this is accomplished with as seen below. Is there something equivalent in Data Services script?
if 'myVar' in globals():
# myVar exists.
Thanks!
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.