I tried to configure the Excel template to print a name into a specific cell under a specific condition.
I found that I could use this statement:
{data:ifEQ(value):show(text):elseShow(alternative text)}
I has an text data of names in:
d.constructor_id.nickname
d.requestor.nickname
And I want to print the requestor only in cases when the constructor is empty. I tried something like this:
{‘’:ifEQ(‘{d.construct_id.nickname}’):show({d.requestor.nickname}):elseShow({d.construct_id.nickname})}
But the result inside the cell looks like this:
{‘’:ifEQ(‘’):show(Petr Pan):elseShow()}
I tried several other versions with null and ‘’ but with same result.
How the statetment should looks like to get on the output only the “Petr Pan” result?
This one works and the syntax looks like this:
{d.construct_id.nickname:ifEM():showBegin}
{d.requestor.nickname}
{d.construct_id.nickname:ifEM():showEnd}
{d.construct_id.nickname}