Conditions for dynamic attribute

Hello all!

There was a question of creating the right conditions. I kind of already figured out how to Wappler to create the conditions, but occasionally there is misunderstanding.

So, there is a table: http://cy65837.tmweb.ru/mainpage.html

The table has a column “55555”. In this column, the default value for each cell is “- - -”. Then I set a condition if a record field value “account_base” from database query > 0 then instead of “- - -” in the cell reflected a badge that you now see in the table. The condition looks like this:

serverconnect1.data.query1[0].account_base > 0

The problem is that in the database I put the value of the field “account_base” only one record at first. For all other records, this field is empty. That is, the badge should be shown only at the first record, and the cells of the other records should reflect the “- - -” which is the default.

What’s wrong with my condition? How to write correctly that the check was made on a field of each specific record?

Thank you in advance for your help!

Community Page
Last updated: