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 :: change user default shell 
Shell :: helmfile install ubuntu 
Shell :: bash string length 
Shell :: how to install pip2 in kali linux 2021 
Shell :: linux terminal commands 
Shell :: composer upgrade to 2 
Shell :: github error “Commit your changes or stash them before you can merge”? 
Shell :: bash red text 
Shell :: git abort conflict stash 
Shell :: how to update linux 
Shell :: mac xterm download 
Shell :: linux custom command 
Shell :: windows edit file cmdf 
Shell :: install lando linux 
Shell :: github add image readme 
Shell :: docker compose command bash permission denied 
Shell :: install apache2 linux 
Shell :: git view differences between commits 
Shell :: cascadia code vscode ubuntu 
Shell :: how to docker login with gitlab 
Shell :: revert git commit 
Shell :: pulseaudio check if runnings 
Shell :: Uninstall Applications in ubuntu through the Command Line 
Shell :: how to install as dev dependency 
Shell :: liburcu ubuntu install 
Shell :: download a zip file using curl 
Shell :: best linux vpn server 
Shell :: how to print substring in bash script 
Shell :: ubuntu install brave 
Shell :: what service is listen on what port linux 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =