conditional branching makes no difference betwen “” and 0
TextBox_1.text = “”
Is Condition “[TextBox_1.text] == 0
it becomes TRUE
same problem when TextBox just deleted.
2 answers
Hi Yasofies,
Since the expressions will be converted to Javascript, the “auto type convertion” feature is also directly inherited from Javascript.
In Javascript, an empty string will be converted to number 0 if you compare it with integer. In order to avoid this kind of problem, the data on the right side of condition should have the right type, like this
Is Condition “[TextBox_1.text] == “0”
The difference is the double quotes, it will avoid converting the string on the left into integer.
This question is now closed