cases function

Distinguish between Cases Specified by Logical Conditions