Wednesday 30 January 2019

Test a Variable Defined in Groovy Runtime

Cited How can I determine if a variable exists from within the Groovy code running in the Scripting Engine?

if (binding.hasVariable('superVariable')) {
// your code here
}