%if &myVar = %then ...;
But that is not the most intuitive, especially when you have more complex logic such as:
%if &myVar = and &nextVar = something %then ...;
Looks a little confusing. Like I forgot to type something after the equals sign!
I like to handle this by using %STR( ). That way you can see that I am definetly testing for a blank. Such as:
%if &myVar = %str( ) %then ...;
Happy coding!
No comments:
Post a Comment