You can use getCaption($yourenum) to get the caption of an enum as a string.
The simplest solution without java code would be to check the string in an if-else statement.
For instance if you have a module named Portal with enumeration Country, your enumeration values could be:
so the snippet in the editor can be written as such:
if $Country/Name = 'Netherlands' then
if $Country/Name = 'Belgium' then