Show Card's Conditionally

You can use app_tables.restaurants.search() instead of get. Note that this returns a search iterator. This may still be considered “Truthy” even if you return zero records (I can’t remember).

I guess if you don’t actually need to return the data from the table, you can just test for a length greater than zero.

len(app_tables.my_table.search())
2 Likes