There is such an event block available, but you need to use it wisely and carefully, it is very easy to create infinite loops (and crash your app) with it. Hence the generally used preference of for each and if.
Theoretically and above all, it is not logically correct, yes we know that TinyDB is a close neighbor of app in AI2 context, but principally it is a DataBase in all. And we need always to reduce the DB call.
Populate list-variable with tinydb-value a list in this case and can be iterated to process it, a variable is heart of program not a distant neighbour - TinyDB, which shouldn't be used in looping.
Except that it isn't really a Database, it is a flat XML file. I have requested that TinyDb be served with some Db-like-tools, but the idea was not received with enthusiasm from MIT