Unofficial: noob code error (need help fixing error)

Original Conversation

@RoughRiderRobotics

I am glad to help you with your code, but next time please post in a channel where forum members can reply (otherwise you probably won’t get a timely response), and please format the code in brackets like I have done below (it makes it easier to read and see the format).

It looks like you are missing a single bracket at the end of your code. Make sure to keep track of the brackets, as you should have a right bracket for every left one. You can use the “fix formatting” button at the top of RobotC to realign the brackets and code and see if you are missing any brackets.

task usercontrol()
{
	while(1 == 1)
	{
		//Claw Control
		if(vexRT[Btn6U] == 1)
		{
			motor[clawMotor] = 127;
		}
		else if(vexRT[Btn6D] == 1)
		{
			motor[clawMotor] = -127;
		}
		else
		{
			motor[clawMotor] = 0;
		}
		{
			//Arm Control
			if(vexRT[Btn5U] == 1)
			{
				motor[armMotor] = 127;
			}
			else if(vexRT[Btn5D] == 1)
			{
				motor[armMotor] = -127;
			}
			else
			{
				motor[armMotor] = 0;
			}
		}
	}
}//this is the missing bracket.

Okay, Thank you…
I figured out the problem shortly after posting this, but I appreciate your help.

You are welcome.