Batchfile: What’s the best way to declare and use a boolean variable?
set “condition=” and set “condition=y” where y could be any string or numeric. This allows if defined and if not defined both of which can be used within a block statement (a parenthesised sequence of statements) to interrogate the run-time status of the flag without needing enabledelayedexpansion ie. set “condition=” if defined condition (echo true) … Read more