Programming For pneumatics, Solved!

I found the programming for a pneumatic cylinder!
Problem was, that I put all the controls inside the if, on the if-else loop, and not in the while loop itself!

#include "UserAPI.h"
int pneumatic0;
int pneumatic2;
int light;
void main ( void )
{
Wait ( 5000 ) ;
while ( 1 )
{
Arcade2 ( 0 , 1 , 2 , 1 , 2 , 1 , 0 ) ;
ServoRcControl ( 0 , 3 , 4 , 0 ) ; // //Cam!
//arm parts below!
MotorRcControl ( 0 , 4 , 3 , 0 ) ;
pneumatic0 = GetRxInput ( 1 , 5 ) ;
pneumatic2 = GetRxInput ( 1 , 6 ) ; // //claw!
if ( pneumatic0 == 1 ) // Arm lift!
{
}
else
{
SetDigitalOutput ( 11 , pneumatic0 ) ;
}
if ( pneumatic2 == 1 ) // Claw!
{
}
else
{
SetDigitalOutput ( 12 , pneumatic2 ) ;
}
}
}

This is just some example code, on EZ c