Null check on doesn't works on numbers

Wappler Version : 2.9.0
Operating System : Mac OSX Catalina v10.15.3
Experimental: Switched on

Null check doesn’t work on numbers (from any component - var, serverconnect, datastore etc).

<dmx-value id="var_number" dmx-bind:value="0"></dmx-value>
<dmx-value id="var_number_is_null" dmx-bind:value="var_number.value ? &quot;NOT NULL&quot; : &quot;NULL&quot;"></dmx-value>
<p >Var_number_is_null - {{var_number_is_null.value}}</p>

(works fine on text & boolean)

<dmx-value id="var_text" dmx-bind:value="'&quot;something&quot;'"></dmx-value>
<dmx-value id="var_text_is_null" dmx-bind:value="var_text.value ? &quot;NOT NULL&quot; : &quot;NULL&quot;"></dmx-value>
<p>Var_text_is_null - {{var_text_is_null.value}}</p>

<dmx-value id="var_boolean" dmx-bind:value="true"></dmx-value>
<dmx-value id="var_boolean_is_null" dmx-bind:value="var_boolean.value ? &quot;NOT NULL&quot; : &quot;NULL&quot;"></dmx-value>
<p>Var_boolean_is_null - {{var_boolean_is_null.value}}</p>

image

Community Page
Last updated: