diff --git a/structr-core/src/main/java/org/structr/core/parser/Functions.java b/structr-core/src/main/java/org/structr/core/parser/Functions.java
index <HASH>..<HASH> 100644
--- a/structr-core/src/main/java/org/structr/core/parser/Functions.java
+++ b/structr-core/src/main/java/org/structr/core/parser/Functions.java
@@ -2787,6 +2787,12 @@ public class Functions {
 
 	protected static boolean valueEquals(final Object obj1, final Object obj2) {
 
+		if (obj1 instanceof Enum || obj2 instanceof Enum) {
+			
+			return obj1.toString().equals(obj2.toString());
+			
+		}
+		
 		if (obj1 instanceof Number && obj2 instanceof Number) {
 
 			return ((Number)obj1).doubleValue() == ((Number)obj2).doubleValue();
Fixed test for equal() function with enums