en:docs:dos:cmd:basic:if

Table of Contents

IF/THEN/ELSE

Syntax

IF value THEN line1 [ELSE line2]

Description

Single line standard IF command. If the value is non-zero, then branh to line1. If the value is zero and ELSE is provided, then branch to line2. Otherwise continue to the next line. LABELS are not allowed.