Page 1 of 1

Variable in conditions

Posted: Fri May 31, 2019 10:35 am
by Kline
Hi,
I need to use a variable present in my dictionary to set a condition.
I have a string variable named "livello", what is the correct way to write the condition?
I tried this way but it doesn't work
conditions.jpg
conditions.jpg (101.34 KiB) Viewed 3521 times
Thank you
Giovanni

Re: Variable in conditions

Posted: Fri May 31, 2019 11:01 am
by Lech Kulikowski
Hello,

What do you mean with "stringvalue > 0" expression - length or value or something else of that string?

Thank you.

Re: Variable in conditions

Posted: Fri May 31, 2019 12:00 pm
by Kline
Sorry, I was not precise. "livello" is a "decimal" type variable. I mean value of "livello" is bigger than 0.

Thank you

Re: Variable in conditions

Posted: Fri May 31, 2019 12:26 pm
by Lech Kulikowski
Hello,

Your condition is not correct:
livello = 0 AND livello > 0

Please try to remove first and in the second use:
livello >= 0

Thank you.

Re: Variable in conditions

Posted: Fri May 31, 2019 12:49 pm
by Kline
Hello,
I removed the first condition and it works if I "use livello >= 0" but not if I use "livello > 0", the value of the variable "livello" is 4.

I tried with other conditions and I found there are problems when I add a second level.

Thank you

Re: Variable in conditions

Posted: Fri May 31, 2019 1:35 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.

Re: Variable in conditions

Posted: Fri May 31, 2019 3:24 pm
by Kline
Hello,
I solved using both the necessary conditions in an expression joined with "&&"

thank you

Re: Variable in conditions

Posted: Sun Jun 02, 2019 7:53 pm
by Lech Kulikowski
Hello

Ok.
Please let us know if you need any additional help.

Thank you.