Add an is valid check on the variable at the beginning of the function. Pipe Invalid to a print string.
The variable is Empty…meaning not set. Thus the error and not getting the result you want.
Add an is valid check on the variable at the beginning of the function. Pipe Invalid to a print string.
The variable is Empty…meaning not set. Thus the error and not getting the result you want.