Compare enumeration value to a string

0
Hi, How can i compare the value of an enumeration with a string in a microflow? This is what i tried, but i cant make it work. Any idea?
asked
2 answers
4

More readable is using the enumeration functions (read more here: https://docs.mendix.com/refguide/enumerations-in-expressions):

Compare caption:

getCaption($Coste_Externo/Proveedor) = 'Versia'


Compare key:

getKey($Coste_Externo/Proveedor) = 'Versia'


Comparisons are Case-Sensitive. Eventually, use function toLowerCase() like so:

toLowerCase(getCaption($Coste_Externo/Proveedor)) = 'versia'

 

answered
2

you need to put Versia with quote. Like that : ‘Versia’

answered