Index: /trunk/FACT++/src/InterpreterV8.cc
===================================================================
--- /trunk/FACT++/src/InterpreterV8.cc	(revision 17654)
+++ /trunk/FACT++/src/InterpreterV8.cc	(revision 17655)
@@ -381,6 +381,8 @@
                          "if(!s)throw new Error('Waiting for state "+arg1+" of server "+arg0+" failed.');";
     if (isNot)
-                         "if(state=="+index+")return true;";
+        code +=
+                         "if(state!="+index+")return true;";
     else
+        code +=
                          "if(state=="+index+")return true;";
     if (timeout)
