Building up on @Ewan's idea to use a list but removing his somewhat unnatural `foreach break` pattern: while not conditions.head.check() { conditions.next() } conditions.head.alert() Now adapt this in your language of choice, make each element of the list an object, a tuple, whatever, and you're good.