How to conditonally include elements in a list?

Thank you Hans-Helmut! That worked!