Hi,
We have a use case where we need to use the output value received from the script in an if clause, but for some reason its taking the name of the variable instead of the value. This works fine when we are assigning this value to something or passing it as an input variable to another script.
Ex:
Output param : &OUT(DistinguishedName)&
Using this to calculate the value of an input param which will be passed to a script at a later step.
If "&OUT(DistinguishedName)&".Contains("ou=abc") then
Value = "abc"
else
Value="xyz"
End If
This piece of code will return xyz every time even though the DN received from output param contains ou=abc and that's because its checking the string in the name of variable rather than the value.
What can be done here?