Push sensors aren't working right - Help!

Hi! I am needing help again for my 10 yr old son who is building a robot. (servos work now - thanks)

 

The push buttons are working (as indicated by the red light on the circuit board when they are pushed). But, they won't cooperate with the program.

 

Here is the part that references the button (basic stamp II):

 

 

COUNTER VAR Word

IF (IN5 = 1) THEN GOSUB FORWARD

FORWARD:

FOR COUNTER 1 TO 10

PULSOUT 15, 2000

PAUSE 20

FOR COUNTER 1 TO 10

PUSOUT 13, 2000

PAUSE 20

 

PUSOUT 13, 2000

this line has an obvious spelling error

I doubt this causes your problem though. You neglect to explain what is supposed to happen and what is really happening. Could you elaborate?

A description of the circuit

A description of the circuit and/or a picture would be helpful. As well as what RiK asked regarding what it is doing compared to what you expect.

The IN5 = 1 comparison does not need to be in parenthesis. In the manual, parens appear to only be used on an IF-THE-ELSE structure, though not sure if that would trip anything up.