Genexi2 #1 I'd suggest you store the value of JoyX() into a floatin-point variable and use the variable for your if statements.....,..cause I have a feeling its cause you're using more than one If statement for the one command.