I have a two-column list of cities and continents:

Prague; Europe
Berlin; Europe
New York; America
Tokyo; Asia

How can I show only the citites conditionally flagged based on the contintent value?

Something like this:
<red flag> Prague
<red flag> Berlin
<green flag> New York
<yellow flag> Tokyo

Any help would be appreciated!