CASE WHEN {custentity1} > .17 THEN 18 ELSE 0 EN...
# general
p
CASE WHEN {custentity1} > .17 THEN 18 ELSE 0 END
k
what formula type did you use?
p
text
k
this is so weird. I have it set to formula text and the code is CASE WHEN {custbody_appliance_gross_profit}) > .1799 THEN 0 ELSE '🔞' END
but it still shows invalid expression
even tried CASE WHEN {custbody_appliance_gross_profit}) > .1799 THEN 0 ELSE 'UNDER 18' END
i finally got it
did CASE WHEN TO_NUMBER({custbody_appliance_gross_profit}) < .18 THEN 'UNDER 18' END
✅ 1
p
I'm not an expert on this so I don't have a reason why, but it seems if you mix output types it throws an error. Try putting '0' instead of 0
When you had the else in the formula you were outputting a number else a string. Seems like NetSuite/SQL doesn't like that
k
oh, that makes sense. thanks for helping me troubleshoot through the issue