Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested IFs in a table cell issue #369

Open
ArtVS opened this issue May 6, 2024 · 0 comments
Open

Nested IFs in a table cell issue #369

ArtVS opened this issue May 6, 2024 · 0 comments

Comments

@ArtVS
Copy link

ArtVS commented May 6, 2024

Hi, everyone! I have the following nested IF statement in a table cell my template:
{IF $parameter.isMain == 0}{*ParameterName}{IF $parameter.unit != null}, {*ParameterUnit}{END-IF}{END-IF}{IF $parameter.isMain != 0}**{*ParameterName}{IF $parameter.unit != null}, {*ParameterUnit}{END-IF}**{END-IF}

It displays main parameter in bold and non-main parameters in regular, and should a parameter have a unit, it is displayed too.

Since version 11.5 the createReport function errors, saying nested IFs are not allowed. Is there a workaround other than rewriting without nested IFs? Or can someone add a fix for that issue in future versions, maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant