if Statement (C++)

An if statement runs a block of code only when its condition is true. You can add else if to test more conditions and else to handle everything else.