How to print a list of conditions