Hi
Ok this is probley not a BUG just bad synax , but it gives a strange result, well not what i exspected :-)
the correct syntax i think is....
if (condition = first test) or (condition = second test)
ÂÃ, Ã‚Ã, Ã‚Ã, do something intresting :-)
endif
now this works fine but if you write the code as below
if condition = first test or second test
ÂÃ, Ã‚Ã, Ã‚Ã, do something intresting :-)
endif
you dont get any errors & the if stament is processed as the stament is TRUE :-) even if the condition iÂÃ, <>
maybe its just me :-)
The second test isn't a condtition, in your second example, will be treated as a boolean. 0 = false, <>0 = true.
Think of it in terms of numbers.
if (1 = 2) OR (2=2)
endif
if 1 = 2 OR 2
endif
the OR 2 always resolves to TRUE since it is not FALSE.
Paul.
;) i see....