Bots on Wheels FRC 4290 Programming Documentation.
If statements are used to define what code to run based on conditional logic. The following article(s) explain how you can use if statements in Java:
Switch case statements are very similar to if statements, and anything that can be written as a switch statement can be written as an if statement, however switch statements tend to be faster and more concise, so are better for large block evaluations. The following article(s) go over how to use these in Java: