Help with ternary statement

<input type="hidden" id="inp_user_type_status" name="user_type_status" dmx-bind:value="((chklist_personal_data.data.query.user_type != null) &&(chklist_personal_data.data.query.user_type_override != 1)) ? 1 : 0">

The above is simply to assign a value based on the below logic.
if usertype is not null and usertype_override is not 1 then 1 else 0
It always returns 0 even if the criteria is met.

Am I doing something wrong?

Community Page
Last updated: