Here is a table of how to set the relay values to get the different results possible. It's from the IFI Spike document:
http://www.ifirobotics.com/docs/spik...uide-sep05.pdf
We don't usually set both "rev" and "fwd" to 1 at the same time.
Both fwd=0;rev=0; as well as fwd=1;rev=1; should mean the motor is off.
This code will execute one section only as long as the switch is depressed and the other whenever the switch is not pressed.