Index: /trunk/FACT++/scripts/CheckStates.js
===================================================================
--- /trunk/FACT++/scripts/CheckStates.js	(revision 17926)
+++ /trunk/FACT++/scripts/CheckStates.js	(revision 17927)
@@ -40,5 +40,5 @@
  *
  */
-function checkStates(table, timeout)
+function checkStates(table, timeout, wait)
 {
     if (timeout===undefined)
@@ -69,9 +69,14 @@
                     continue;
 
-                dim.log(table[i][0]+" in ["+states[i]+"] not as it ought to be ["+table[i][1]+"]");
+                if (!wait)
+                    dim.log(table[i][0]+" in ["+states[i]+"] not as it ought to be ["+table[i][1]+"]");
+
                 rc = false;
             }
-
-            return rc;
+            if (rc)
+                return rc;
+
+            if (!wait)
+                return false;
         }
 
