If condition, text

Dear,

I used the same if construction in a reconciliation as in a text. {% if a5 > 0 and a5 != blank %}

In the reconciliation does it works fine but in the text is the if function true if my input field (a5) is blank.

Can anyone help me on this matter?

Thanks

Hi @marnixcoudre,

Could you paste the piece of code that you use in the text? Especially the one that defines the a5?

There are some subtle differences between a reconciliation text and a regular text (wrt how the custom properties are linked to the object).

Hi Tim,

We defined a 5 as follows:

{% assign a5 = period.reconciliations.reserves_and_dividends.custom.reserves.spreadgains_end %}

Should I do something different in a text?

So you’re saying that the following code doesn’t work in the text:

{% input period.reconciliations.reserves_and_dividends.custom.reserves.spreadgains_end %}

{% assign a5 = period.reconciliations.reserves_and_dividends.custom.reserves.spreadgains_end %}
{% if a5 > 0 and a5 != blank %}not blank{% endif %}

I can’t seem to reproduce it