Logic comparison != of type string - returns test string - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Stefan Chivers
5 years ago
Hi team,

Using VisualCron 8.3.3 and 8.3.1 the "{LOGIC(If|String" formula with operator != returns the test string from the first parameter rather than one of the values from the last two parameters. This happens regardless of whether the strings match. So for example:

{LOGIC(If|String|Test string|!=|Test string|String is not matching|String is matching)}
Returns "Test string"

{LOGIC(If|String|Test string|!=|Test strings|String is not matching|String is matching)}
Returns "Test string"

I would expect these examples to return "String is matching" and "String is not matching" respectively.

Thanks,
Stefan
Sponsor
Forum information
thomas
5 years ago
Yeah this is clearly a bug.
Gary_W
5 years ago
Yikes! That exists in 8.5.5 too. I can't believe that hasn't been found until now. The equality comparison seems to be ok. How did this make it through testing?
Joey S
5 years ago
Your variable is wrong OR it is wrong in the app

{LOGIC(If|String|Test string|!=%|Test string|String is not matching|String is matching)}

NOT
{LOGIC(If|String|Test string|!=|Test string|String is not matching|String is matching)}

You are missing the % after the !=
Joey S
5 years ago
oddly enough in 8.5.5 there is a typo in the default example

{LOGIC(If|String|Test|!=%|Test string|Does not contain stringf|Contains string)}

"stringf" should lose the "f" I am guessing

thomas
5 years ago
I assume the % must be a wildcard, so that !=% would be similar to NOT LIKE in sql. I think it is simply a bug that should have been caught by unit tests

Support
5 years ago
Thanks for the report.

For the next build we have fixed return of the result values for:
{LOGIC(If|String|Test string|!=|Test string|String is not matching|String is matching)}

And corrected "stringf" to "string".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top