I am only guessing, but I think that BTst(x,0) is equal to TRUE which is not equal to 1. Saludos, Pablo Vera nando wrote: > I'm curious of the following > > DIM x AS INTEGER > > x=1 > > PRINT BTst(x,0) ' <<-result is TRUE (correct) > PRINT BTst(x,0)=1 ' <<-result is FALSE (unexpected)