Where am i going wrong with this if statement?

I can’t figure out what is wrong with this statement:

if mouseOver.isPositive and mouseClick.isPositive:
  print gameObj

it should print gameObj if both mouseOver AND mouseClick are positive. But it returns value if either is positive.

What have i done wrong?

isPositive is a function and should be used like this: sensor.isPositive()
It is depricated anyway. Use sensor.positive instead.


It works.