Knowledge Walls
John Peter
Pune, Maharashtra, India
Things to Know [cont'd]
AND Operator in Logical Operators of MS-DOS Commands
2218 Views
Hints 
AND operator Return true when both conditions are true.

Logic:
Condition 1 Condition 2 Result
true true true
false true false
true false false
false false false
Example
@echo off

SET a=50
SET b=30
SET c=40

IF %a% GTR %b% (IF %a% GTR %c% (
   ECHO a is big!
))

SET /p exit=Press enter to exit
Output 
Previous Topics
Previous lessons of current book.
Logical Operators of MS-DOS Commands
Logical Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Best Lessons of "MS-DOS Commands"
Top lessons which are viewed more times.
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Logical Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details