if and case statement