sramazzina commented on issue #6102:
URL: https://github.com/apache/hop/issues/6102#issuecomment-3655019456

   Looking at the code, if the comparison is made with a not set variable the 
result is always true so the behavior is correct
   
   ```
         // make the empty value evaluate to true when compared to a not set 
variable
         String key = StringUtil.getVariableName(variableName);
         if (System.getProperty(key) == null) {
           success = true;
         }
   ```
   
   I suggest to introduce a flag to modify the standard behavior if needed. 
Something like _Always evaluate to SUCCESS if variable is unset_ . We can 
enable the flag only when we evaluate to a Variable and we can give that flag a 
_default value of true_ so that the legacy behavior is preserved. Let me know 
what you think and I will apply the changes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to