Nested conditional statements
Posted: Fri Oct 15, 2021 6:14 pm
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.
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.