Batch Script Decision Making - Batch Script

How is decision making done?

Decision-making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.
Sl.No Strings Description
1
If Statement
The first decision-making statement is the ‘if’ statement.
2
If/else Statement
The next decision making statement is the If/else statement. Following is the general form of this statement.
3
Nested If Statements
Sometimes, there is a requirement to have multiple ‘if’ statement embedded inside each other. Following is the general form of this statement.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Batch Script Topics