Forum Discussion
sastowe
13 years agoSuper Contributor
Where is the undesired behavior? I see this
if (BtnAssociacao.Exists && BtnAssociacao.Enabled)
gives me pause. I don't remember for sure. But I think the scripting engine needs to be able to evaluate the whole conditon.
So let's say BtnAssociacao.Exists is false. The && BtnAssociacao.Enabled will still be evaluated. Which it cannot if it does not exist.
Just a thought.
if (BtnAssociacao.Exists && BtnAssociacao.Enabled)
gives me pause. I don't remember for sure. But I think the scripting engine needs to be able to evaluate the whole conditon.
So let's say BtnAssociacao.Exists is false. The && BtnAssociacao.Enabled will still be evaluated. Which it cannot if it does not exist.
Just a thought.