Conditional Merge Fields

How to create merge fields that are conditional upon the content of other fields?