So our competition is getting closer and closer. Can someone tell me where and when to put the curly brackets?
I moved this out of the ROBOTC technical support channel, perhaps the community can help.
Curly brackets (also called braces) are used to surround code blocks after a condition.
if (condition) {
//Code that runs if the condition is true
}
In the above example, the code surrounded by braces will only run if the condition is true.