PowerShell 7 Tutorials for Beginners #6 : If, ElseIf, Else (Conditional Statements)

  Рет қаралды 8,079

JackedProgrammer

JackedProgrammer

Күн бұрын

In this video I will go over using ifs, elseifs and else in PowerShell 7.2 , we will see what a conditional statement is and revisit boolean values and see how to use a if statement in a real world scenario of it a specific file exists.
Tags:
PowerShell, jackedprogrammer, powershell 7, how to install powershell 7, powershell 7 on vs code, visual studio code

Пікірлер: 12
@BitPazzo
@BitPazzo 2 жыл бұрын
Thank's for your videos... The best on KZbin
@Jon-rp4st
@Jon-rp4st 2 жыл бұрын
Yes I agree with you 100%!
@tashiro4685
@tashiro4685 2 жыл бұрын
I love your videso, i know it may target a small audience. I use Powershell for a lot of things via azure cli, exchange, ad, etc list goes on. This helps me understand from your perspective which is a great approach. Thank you once again!
@stephendolman42
@stephendolman42 11 ай бұрын
Thankyou, Really enjoying your videos. I'm New to PowerShell and have just started in a company that does a lot of scripts so i'm starting to understand the terminology and how things are structured, cheers
@shanelonn7728
@shanelonn7728 Жыл бұрын
Awesome video series! Trying to dive into Powershell and this is immensely helpful. Thank you!!
@mnamusik1653
@mnamusik1653 2 жыл бұрын
as always perfect content and tutorial. thanks a lot ❤❤❤❤❤❤❤❤
@fpost337
@fpost337 2 жыл бұрын
I love your series! Keep it up! Side note: Is the (font) video quality strange on this video (blurry fonts with a glow effect?) for anybody else? All the other videos have been fine! And if I might suggest a Full HD upload? Helps with the fonts a lot!
@netor-3y4
@netor-3y4 9 ай бұрын
1 -eq 2 #Esuals 1 -ne 2 #Not Equals 1 -lt 2 #Lesser than 1 -le 2 #Lesser or equals too 2 -gt 2 #Greater than 1 -ge 2 # Greater oor equals @(1,2,3) -contains 4 @('Test','test') -contains 'TEST' @('Test','test') -ccontains 'TEST' # sensitive case 'Test' -eq 'TEST' 'Test' -ceq 'TEST' # sensitive case $filePath="C:\" if(Test-Path -Path $filePath){ $Data=Get-Content -Path $filePath if($Data.Count -lt 2){ Write-Output "Thilfile has less than 2 lines" }elseif($Data.Count -lt 4){ Write-Output "This file has less then 4 lines but at least 2" }else{ Write-Output "This file has 4 or more lines" } }else{ Write-Output "File $filePathdoes not exist! . " }
@Jon-rp4st
@Jon-rp4st 2 жыл бұрын
Thank you so much, I hope one day I can make my own Scripts.
@ВикторЛарионов-й3к
@ВикторЛарионов-й3к 7 ай бұрын
Very useful videos
@naomitheron2855
@naomitheron2855 Жыл бұрын
Hi Mr JackedProgrammer, I cannot get my $filePath to show the content . it does everything but that ? any ideas?
@SameOldjeans
@SameOldjeans 2 жыл бұрын
Next video loops !?!
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 15 МЛН
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 72 М.
30 Programming Truths I know at 30 that I Wish I Knew at 20
17:41
PowerShell 7 Tutorials for Beginners #9 : For, Do, While (Loops)
26:40
JackedProgrammer
Рет қаралды 6 М.
PowerShell Tutorial 6 :  If, elseif, else [Beginners]
18:32
JackedProgrammer
Рет қаралды 7 М.
PowerShell 7 Tutorials for Beginners #8 : ForEach (Loops)
19:03
JackedProgrammer
Рет қаралды 8 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
How to Check if Someone is Remotely Accessing Your Computer
16:58
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 577 М.
PowerShell Quick Tips : Scan for large files/folders
16:02
JackedProgrammer
Рет қаралды 1 М.
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН