UDEMY : https://www.udemy.com/course/learn-ba...
Title: BATCH SCRIPTING// NESTED IF CONDITION // Batch Scripting Part 18 NESTED IF CONDITION
In this lesson, you will be learning about NESTED IF CONDITION for Batch Script.
NESTED IF CONDITION: Sometimes, there is a requirement to have multiple ‘if’ statement embedded inside each other. Following is the general form of this statement.
if(condition1) if (condition2) do_something
So only if condition1 and condition2 are met, the code in the do_something block be executed.
Following is an example of how the nested if statements can be used.
Example
@ECHO OFF
REM NESTED IF
SET /A A=10
SET /A B=5
IF %A%==10 IF %B%==5 ECHO THE IF CONDITION WORKS
PAUSE
OUTPUT:
THE IF CONDITION WORKS
=======================================================
If you have any questions, please post them. Don't forget to comment, like, rate and subscribe
=====================================================
Batch file programming tutorial // CREATE BATCH FILE // Batch Scripting Part-1 -- • Batch file programming tutorial // CREATE ...
Batch file programming tutorial // Batch Scripting Part-2 - Basic Batch Commands -- • Batch file programming tutorial // Batch S...
Batch file programming tutorial // COPY COMMAND // Batch Scripting Part-3 - COPY Batch Command -- • Batch file programming tutorial // COPY CO...
Batch file programming tutorial // DEL COMMAND // Batch Scripting Part-4 - DEL Batch Command -- • Batch file programming tutorial // DEL COM...
Batch file programming tutorial // MOVE COMMAND // Batch Scripting Part-5 - MOVE Batch Command -- • Batch file programming tutorial //MOVE COM...
Batch file programming tutorial // ATTRIB COMMAND // Batch Scripting Part-6 - ATTRIB Batch Command -- • Batch file programming tutorial // ATTRIB ...
Batch file programming tutorial // FIND COMMAND // Batch Scripting Part-7 - FIND Batch Command -- • Batch file programming tutorial // FIND CO...
Batch file programming tutorial // VARIABLES IN BATCH SCRIPT // Batch Scripting Part- 8 - VARIABLES -- • Batch file programming tutorial // VARIABL...
DO NOT CLICK // LOCAL AND GLOBAL VARIABLES IN BATCH SCRIPT // Part- 9 - LOCAL AND GLOBAL VARIABLES -- • DO NOT CLICK // LOCAL AND GLOBAL VARIABLES...
BATCH SCRIPTING // STRINGS IN BATCH SCRIPT // Batch Scripting Part- 10 - STRINGS -- • BATCH SCRIPTING // STRINGS IN BATCH SCRIPT...
BATCH SCRIPTING// LEFT, MID AND RIGHT STRINGS// Batch Scripting Part- 11- LEFT, MID AND RIGHT STRING -- • BATCH SCRIPTING// LEFT, MID AND RIGHT STRI...
REMOVE AND REPLACE IN STRING // Batch Scripting Part 12 REMOVE AND REPLACE IN STRING -- • REMOVE AND REPLACE IN STRING // Batch Scri...
BATCH SCRIPTING// ARRAYS // Batch Scripting Part 13 ARRAYS -- • BATCH SCRIPTING// ARRAYS // Batch Scriptin...
BATCH SCRIPTING// MODIFY AND ITERATE OVER AN ARRAYS // Batch Scripting Part 14 MODIFY AND ITERATE -- • BATCH SCRIPTING// MODIFY AND ITERATE OVER ...
BATCH SCRIPTING// LENGTH OF AN ARRAY // Batch Scripting Part 15 LENGTH OF AN ARRAY -- • BATCH SCRIPTING// LENGTH OF AN ARRAY // Ba...
BATCH SCRIPTING// IF CONDITION // Batch Scripting Part 16 IF CONDITION -- • BATCH SCRIPTING// IF CONDITION // Batch Sc...
BATCH SCRIPTING// IF/ELSE CONDITION // Batch Scripting Part 17 IF/ELSE CONDITION -- • BATCH SCRIPTING// IF/ELSE CONDITION // Bat...
======================================================
Check out other videos
WEAPONS THAT CAN DEFEAT THANOS -- https://www.youtube.com/watch?v=nvlez
MS PAINT TRICK -- https://www.youtube.com/watch?v=4IvBC
Matrix Effect -- • Matrix Rain Best Trick// Create Matrix Rai...
CMD: Wi-Fi Password Hack| Find WiFi Password on Windows 10/8/7/XP -- • Video