How to filter/sort values on Firebase

I declare as an empty list.

Yesterday I also struggled the entire day to put a IF statement inside a “Call from database” statement. It only works without IF. This is why I tried to write a query in the KEY. The proble is that I don’t know how to write… I think it should be something like:

const rootRef = firebase.database(https://myvocab-30705.firebaseio.com/).ref();

rootRef.child(‘Box’).orderByChild(‘Box’).equalTo(‘0’);

This info I got based on this video below:

My app is in Thunkable
If you click the button TRIAL, you will see that it crashes

And by the way, thanks for trying to help me :slight_smile: