Sometimes 'case' is better then 'if'.