Joystick?

Blitz3D Forums/Blitz3D Programming/Joystick?

I have a problem, im using Joyx like this

if Joyx() = 1
moveentity whatever,1,1,1
endif

and it doesnt work but if i say

if joyx() = 1 then moveentity whatever,1,1,1

it works, how do i fix the first one?