You need parentheses around the condition in the if statement, and there can't be a semicolon at the end if you want it do actually do anything. You might want to look at some C syntax for the basics, and ROBOTC has some great tutorials here: http://www.robotc.net/education/curriculum/vex/That takes care of making it compile, but whether it does what you want it to do is a different story.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum