decisions makings using if conditions