how to check if Enum field has value?

0
I am using getCaption() to export Enum. But I find out when my Enum field does not have value, it throws error. I try to compare it with empty before using getCaption() but it still give me same error. Please help.
asked
3 answers
2

Hi!

This works for me:

if($currentObject/Enum != empty) 
then getCaption($currentObject/Enum)
else '’

If it isn't working:
Can you share a screenshot of what you are trying to do?

answered
0

I am using same method as yours but it isn’t working on my case.
When that Enum field is selected, no error is thrown. 

answered
0

Can you share full error screenshot

answered