Bug #45183
closed
- Status changed from New to Needs Feedback
- Assignee set to Marc Bastian Heinrichs
Code examples would have made the issue easier to understand. I assume the following:
[globalString = = ]
is false while
[globalVar = = ]
is true?
Or does the issue occur when the left value of the comparison evaluates to an empty string? Like this:
[globalString = GP:someNonExistentGetParameter = ]
Thorsten Kahler wrote:
Code examples would have made the issue easier to understand.
you are right :-)
I assume the following:
No
Or does the issue occur when the left value of the comparison evaluates to an empty string? Like this:
[...]
yep, meant this or e.g.
[globalString = GP:theValueOfThisParameterIsEmpty = ]
Fixed this for the moment via attached patch.
I ever used globalVar for this comparison, but now it's time to fix this, because globalVar isn't for string comparison, right?
Btw.: it works in globalVar because the equals is the only case in function compareNumber() where no doubleval() is called on the rightValue, what is inconsistent.
- Status changed from Needs Feedback to Accepted
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF