why are you making it so confusing? just make it clear as simple as possible. now tell me what does this line mean :-
but i hv also a data w/c i need to multiply the txtQty by txtPrice and txtQty>txtPrice also.
does the above sentence make any sense??? atleast i'm not getting it.
you want to get the value of txtprice when txtqty>txtprice and you are getting it successfully. right or wrong???
now just explain what do you wish to do in the else condition...means what value do you expect to get when txtqty=txtprice or txtqty<txtprice?
just answering the above question might be enough for solving this issue.
what do you think???