In App Inventor, many iterative processes that would be expressed with loops in other languages are expressed with an event that performs a single step of the iteration each time it is triggered. State variables that would be local in the loop approach need to be global in the event-based solution.