Powershell conditionals

From wikinotes
Revision as of 03:26, 19 September 2018 by Will (talk | contribs) (Created page with " <source lang="powershell"> if ($PATH[0] -ne 'C:\Python27') { ... } # if statement if (!( $PATH.Contains('C:\Python27') )){ ... } # if not statement </source>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
if ($PATH[0] -ne 'C:\Python27') { ... }              # if statement

if (!( $PATH.Contains('C:\Python27') )){ ... }       # if not statement