Notifications
Clear all
Topic starter
I am trying to compare a string to the false/is not equal to, but keep getting the following error: {if
OBSPREV("SMOK STATUS") ! <-COMPILER ERROR NEARBY: Expect THEN keyword or COMMA. Instead had ERROR after RIGHT PAREN
{if
OBSPREV("SMOK STATUS") !== "never smoker"
then
"it worked!"
else
"try again"
endif}
---
as there are too many options for smok status, i want it to "it worked!" if smok status is NOT "never smoker"...
any clean, easy way to do this?
Posted : August 26, 2020 10:24 am
The inequality comparison. Operator in MEL language is <>
Try substituting <> for !== in your expression.
Posted : August 26, 2020 11:38 am