Hi,
First of all thanks for the answer.
Actually what, we would like to do is basically simple.
We first use a spike to control our electric motor, but it appeared we are not allowed to use a spike.
So we putted a victor instead. So all our code has to change.
After we wrote our code, we couldn't control our motor anymore. We don't know if there is something wrong about the code, or it's the component itself that doesn't work well.
Now as far as our code above is concerned, we wanted to control our victor with two buttons.
One will make the current go through in a direction(button 1), and the other one will reverse the current (button 5). To be more specific, button 1 will be used to foward our vitor whenever we'll press it and button 5 will reverse it anytime also.
The true condition does the opposite of the false meaning button 1 sets the motor to 0.5 and button 5 sets the motor to 0.
Seriously we don't understand what's wrong with the code. We tried a couple of solutions but it didn't work. We need your HELP on this. This is our rookie year and we would like to impress our school and the community.
THANKS a lot.