Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch script if statement

@echo off 
SET str1 = String1 
SET str2 = String2 

if %str1%==String1 (echo "The value of variable String1") else (echo "Unknown value") 
if %str2%==String3 (echo "The value of variable c is String3") else (echo "Unknown value")
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #batch #script #statement
ADD COMMENT
Topic
Name
7+7 =