Branching allows us to add logic to our applications. This code introduces the ‘if Decision’ statement (in its various forms), along with the conditional operator. This is a simple code, but is helpful to understand the logic statement.

[gist]56b851916725b330a61e[/gist]