March 2, 201015 yr I am trying to validate a variable in a script I created. I want the script to skip over the variable to an else statement if the variable is not valid but neither the if(NotValid) or if(IsEmpty) script steps are getting me the result I want. Is there something else I need to know about validating with variables? Edited March 2, 201015 yr by Guest
March 2, 201015 yr Let's say you set $var = 1. Then: If [ not isempty ( $var) ] do this stuff else do other stuff endif should work. In fact, you could probably just say if ($var).
March 3, 201015 yr Author Unfortunately I can't simply match the variable name because it is dependent upon the logged in users username. For some reason the if [not isempty ($var) ] still doesn't work correctly, but I came up with Case (not(IsEmpty($$path));True;False) = "0" that returns a 1 and 0 when the variable is present and not present and this seems to get the job done. Edited March 3, 201015 yr by Guest
March 3, 201015 yr Case (not(IsEmpty($$path));True;False) = "0" is a very elaborate way to write: IsEmpty ( $$path )
Create an account or sign in to comment