I had a report using nested conditional statements with the format " condition ? true : false "
It looked something like:
{condition ? "Text_if_True" : New_Condition_If_False ? "Text_if_true" : "Text_If_False"}
This was working fine up until a current upgrade in software that uses stimulsoft reports, and now the reports are not working with this.
When I check the syntax I get "Syntax Error - Unprocessed lexemes remain"
I managed to get it to work using the {IIF(,,)} format, but I prefer the { ?: } format as its a bit cleaner.
Did something change and the { ?: } method no longer works when trying to next statements?
Thanks.
Nested conditional statements
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: Nested conditional statements
Hello,
Please check the following expression:
{(condition ? "Text_if_True" : (condition ? "Text_if_true" : "Text_If_False"))}
Thank you.
Please check the following expression:
{(condition ? "Text_if_True" : (condition ? "Text_if_true" : "Text_If_False"))}
Thank you.
Re: Nested conditional statements
Thank you. I see my problem with the parenthesis. Your example works, Thanks.
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: Nested conditional statements
Hello,
You are welcome.
You are welcome.