The less messy way is to make your result a calculation which, using your example, is:
Case
(
C = a, b * .2,
C = b, b * .4
)
Keep adding more of these as needed. You can (and should) have a default value at the end if C can ever have an upredictable/unchecked-for value.