Syntax Error on If/else statement

Hey everyone! This year we don’t really have a programming mentor, so I’m trying my best to do what I can going off of last year’s code that I helped program. This is essentially the same exact code as last year, but now on the if/else statement it’s telling me that there is a Syntax error, and there is no easy fix for it. I was just curious if anyone could even try to help me fix it. I can always provide more code if needed. Thank You!

if(Math.abs(m_DriveControl.getY())>deadzone); {
  throttledeadzone = Math.pow(m_DriveControl.getY(), 3);
} else{
  throttledeadzone = 0;
}
if(Math.abs(m_DriveControl.getY())>deadzone) {
  throttledeadzone = Math.pow(m_DriveControl.getY(), 3);
} else{
  throttledeadzone = 0;
}

image

2 Likes

omg, I feel so stupid now. Okay, thank you.

In my defense, I need new glasses

Don’t be too hard on yourself. I’m a professional with 40 years experience, and occasionally make mistakes like this.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.