If (x = "" AND y = "") OR z = "" Then
'your code
End If
If (x = "" OR x = 0) AND y = "" Then
'your code
End If
(x<>"" or x<>"0")
if y="" then
if x <>"" then
if x <> "0" then
You need to re-think your condition as Erel says above.
What does this statement mean:
If A = x <> "" : x is ANY string except for emptyB4X:(x<>"" or x<>"0")
If B = x <> "0" : x is ANY string except for 0
A OR B = x is ANY string.
So both your conditions re-include each other.
When you rewrite it as:
it forms and AND condition i.e. x <> "" AND x <> "0"B4X:if y="" then if x <>"" then if x <> "0" then
A or B is not any string. It is any string except zero and empty, zero being a string here. Isn' it so?