dialogs/ForceVariableDialog.py
changeset 536 288324dddfb8
parent 525 e8d5ab0855d3
child 564 5024d42e1050
--- a/dialogs/ForceVariableDialog.py	Thu Apr 21 11:06:17 2011 +0200
+++ b/dialogs/ForceVariableDialog.py	Thu Apr 21 15:15:57 2011 +0200
@@ -119,7 +119,7 @@
     else:
         return None
 
-GetTypeValue = {"BOOL": lambda x: {"TRUE": True, "FALSE": False}.get(x.upper(), None),
+GetTypeValue = {"BOOL": lambda x: {"TRUE": True, "FALSE": False, "0": False, "1": True}.get(x.upper(), None),
                 "SINT": getinteger,
                 "INT": getinteger,
                 "DINT": getinteger,