The most basic instance of an if construct evaluates a condition and executes some code according to the condition outcome. If the condition returns true, the code within the conditional is executed.
counter = 10
if counter is 10
console.log 'This will be executed!'
The if construct can be e...