Nbtwist
CASE WHEN {textfieldname} = 'textfieldvalue' THEN '1' WHEN {textfieldname} = 'textfieldvalue2' THEN '10'