Batch conditionals

From wikinotes
Revision as of 00:19, 12 October 2018 by Will (talk | contribs) (→‎if statement)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

if statement

IF [%VARIABLE%]==[] (
  echo Variable is not set

) ELSE IF [%VARIABLE]==[blah](
  echo some condition

) ELSE (
  echo Value Found

)