Search
 
SCRIPT & CODE EXAMPLE
 

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")
Comment

batch file if statement

if %var1%=="Yes" echo Var1
if %var1%=="Yes" (
    echo Var1
)
Comment

PREVIOUS NEXT
Code Example
Shell :: linux change user password 
Shell :: xcrun: error: invalid active developer path 
Shell :: redis install ubuntu 
Shell :: linux process 
Shell :: reset certain file git 
Shell :: openssl windows 
Shell :: how to print new line in shell script 
Shell :: vieuw the MOTD linux 
Shell :: create file in linux 
Shell :: laravel conf apache2 
Shell :: run disk usage analyzer as root 
Shell :: hard vs soft links linux 
Shell :: open folder from terminal ubuntu 
Shell :: git merge branch to another branch 
Shell :: git reset to a specific commit 
Shell :: bash echo in variable 
Shell :: c# powershell 
Shell :: ubuntu dot to png 
Shell :: speedtest cli 
Shell :: gradle test 
Shell :: test server download speed 
Shell :: copy from vim to clipboard 
Shell :: step10 pgadmin ubuntu 20.04 
Shell :: linux mint download 
Shell :: copy everything vim 
Shell :: immutable byte 
Shell :: install scrapy 
Shell :: create public and private key for jwt 
Shell :: github push code from one repo to another 
Shell :: your system lacks libtoolize 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =