The relation between "if" and "case" would be to test for a specific condition.  For example "if there are three items ["case"], then it is a trio."