Hi, I have two datasets that have to be used for two kinds of the app users. Depends of what kind of users is currently using the app, I would like the items in the gallery to be dynamically changed. I would like to use an if statement for that (both datasets have the same columns, so it should not be a problem, Title is the same as Common Name and the app is reading that correctly):

Everything seems to be fine, but when I use If statement, all columns became not recognized:

When I use code 1:

Or code 2:

Separately, without using If, the values in the gallery are always recognized.
Could you please help me in finding any workaround so this can start working fine? I tried with switch and the error is the same:

Thank you!