Could someone please post a working example of this scenario:
We have x,y,z
and we want to check with If statements whether a combination of their values exists:
if x is "" and y is "" or z is ""
If x is '' or x is 0 and y is ""
The expression I wrote
if y="" and (x<>"" or x<>"0") then
...
is expressed correctly to reflect my intention, however it is not working at runtime. I tried it adding a level meaning:
if y="" then
if x <>"" then
if x <> "0" then
...
end if
end if
end if
This way it works.
It doesn't work when they are all expressed in a single line.