English 中文(简体)
Batch Script - Decision Making
  • 时间:2024-11-03

Batch Script - Decision Making


Previous Page Next Page  

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.

S.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.

Advertisements