Skip to content

if

if statements are used to evaluate conditions for branching. The if-statement block is executed if the conditions do not produce zero.

Syntax

if (conditions)
{
}