Data binding and data-details Condition

<div class="col pb-3" is="dmx-data-detail" id="data_detail1" dmx-bind:data="(serverconnect3.data.query.where(`$key`, Bus, '==') || serverconnect3.data.query1.where(`$key`, Cat, '=='))" key="(Bus || Cat)">
<input id="text1" name="text1" type="text" class="form-control" dmx-bind:value="data_detail1.data.Cat || data_detail1.data.Bus"> </div> 

Can someone help me here?
I have two queries I am trying to display one or the other query as the value of the input field. I have been trying the conditional element it is not working.

I also try this:

class="col pb-3" is="dmx-data-detail" id="data_detail1" dmx-bind:data=" serverconnect3.data.query || serverconnect3.data.query1)" key="(Bus || Cat)">
<input id="text1" name="text1" type="text" class="form-control" dmx-bind:value="data_detail1.data.Cat || data_detail1.data.Bus" >

there must be a condition. This way of use will unfortunately not work.

{{ condition ? true : false }}
dmx-bind:value="your_condition ? data_detail1.data.Cat :  data_detail1.data.Bus"

Are you just trying to compare between two choices? or are there a bunch of different choices?

You can do a dmx-show on div if it is one thing and dmx-hide if its the other choice etc.

It is not going to work.
One input field two queries. They don’t have common id. So, I am trying to select one of them or the other.

Query 0: value1
Query 1: value2


Target:
Query0.value1 or Query1.value2 as input value.
I tried it many ways. It looks to me i am doing something wrong here

So what’s the logic here? When should one value be selected and when the other??

Well, Teodor:
both queries are running but when I select one to display the value in the input value. It shows but when I select the second one. It does not show: So, I tried to the conditional element but nothing yet.

Maybe I’m just not understanding your idea - can you please explain your logic a bit more detailed so we can understand when the values should be displayed and where are they coming from?

You are in the good mood today like always.
I was trying to do autocomplete with two table queries using the detail region to regenerate the value in the input field. I failed it.
Autocomplete on Wappler gave an option of only one query and one categories at the time.

I hope one day: we can have autocomplete option:

People:
Sam
John
Categories
Teacher
Student

You can’t use two data sources in the same autocomplete field.
You can either use two separate autocomplete inputs if you want to do this or if you want to show just one - put two autocomplete inputs with the same name in two conditional regions and toggle the regions based on user selection.

Thank you for your recommendation. i will try the last one you said