if / else
Runs a command based on a condition.
Syntax
if condition (...) else (...)
Description
Comparison: == (equal), equ gtr lss (numeric). if exist checks if a file exists, if errorlevel checks error codes.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
greater
When to use?
Flow branching.