Cant get conditional region to work

hi
i have a row that i have set to conditional. its conditional on a server connect running and not being null.

so if the SC is null the row will show.

I can see from the inspector that the sc is null. i have the condition set to isempty yet the row never shows

SC_ContractDetails.data.ContractDetails.isEmpty()

null

anyone shed light on what i am doing wrong or missing?

many thanks

Hi,
did you try SC_ContractDetails.data.ContractDetails == NULL

Otherwise have you tried setting a default value of 999 and displaying the zone if equal to 999

i tried testing the query to be not set, didnt type null or NULL etc as was hoping it would now not set means null, but will try, i tried saying query.id < 0 etc etc, tried whole bunch of things but will try the == null but not sure why the isempty is not working as surely it should
thanks

<div id="conditional1" is="dmx-if" dmx-bind:condition="SC_ContractDetails.data.ContractDetails.default(999)==999"></div>

empty = “” not null

1 Like

I think you want to check this:

dmx-bind:condition="!SC_ContractDetails.data.ContractDetails"

in order to show the element, when the ContractDetails returns nothing.

2 Likes