Naomi,
well, it's 21:35 here, but I am willing to bet that I am not tired. Condition1 is true, condition2 is true, and "do something" is run in both cases, but "do something" BEHAVES DIFFERENTLY!
NB! I changed "soemthing" into "soemthing", which was a typo, and not related to the problem at all.
>Tore,
>
>I think you're tired :)
>
>Look closer and you'll understand, these two are not equavalent.
>
>Do I need to explain why? :)
>
>>Borislav,
>>
>>actually adding the second parameter to DoDefault() made the strange behavior stop. I don't mean to be ungrateful, but I was not so interested in solving the problem itself, because I already had that solved. I was more interested in knowing WHY the construct
>>If condition1 and condition2
>> do something
>>Endif
>>behaves differently from
>>If condition1
>> If condition2
>> do something
>> Endif
>>Endif
>>I am pretty sre that this is a bug, but I don't expect it to be fixed. :-)
>>