DEV Community

JEGADESHWARAN B
JEGADESHWARAN B

Posted on

IF Statement

** Initial**

The if statement checks a condition.
It executes code only when the condition is true.

Depth

If the condition is false, the block is skipped.
It is the simplest decision statement.

More Depth

Used for single-condition checking.

Final

The if statement executes code conditionally.

Top comments (0)