cancel
Showing results for 
Search instead for 
Did you mean: 

Check for existence of Substitution Parameter in Data Services

craig_wilson2
Explorer
0 Kudos

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!

craig_wilson2
Explorer
0 Kudos

We have a bunch of developers who use their own individual repos for development, and I don't want them all to have to create the substitution parameter in their personal repos.

Accepted Solutions (0)

Answers (0)