Branching and Conditional Statements
- if statement - test if a condition is true or false. Execute code only if it is true.
- if...else statement - test is a condition is true or false and do one thing if it is true and another if it is false.
- switch statement;- Sometimes length if-else statements can be hard to read. switch statements provide an alternative syntax.
Learn about Branching on Elvenware.
Learn about operators
Learn about variables