Skip to Main Content
Windows PowerShell 5 – kurz & gut, 4th Edition
book

Windows PowerShell 5 – kurz & gut, 4th Edition

by Rolf Masuch, Thorsten Butz
November 2016
Intermediate to advanced content levelIntermediate to advanced
216 pages
4h 8m
German
dpunkt
Content preview from Windows PowerShell 5 – kurz & gut, 4th Edition

Boolesche Werte

Boolesche Variablen (true und false) werden meistens mit ihren literalen Werten von $true und $false initialisiert. Wenn die Power-Shell diese jedoch als Teil eines booleschen Ausdrucks auswertet (also innerhalb einer if-Anweisung), bildet sie die Ergebnisse in einer passenden booleschen Darstellung ab (siehe Tabelle 7).

Tabelle 7: Boolesche Interpretation der Windows PowerShell

Ergebnis

Boolesche Darstellung

$true

True

$false

False

$null

False

Zahl, die nicht null ist

True

null

False

Zeichenkette, die nicht leer ist

True

leere Zeichenkette

False

Array, das nicht leer ist

True

leeres Array

False

Hash-Tabelle (entweder leer oder nicht)

True

Strings

Die Windows PowerShell bietet mehrere Verfahren für ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows PowerShell 2.0 - Crashkurs

Windows PowerShell 2.0 - Crashkurs

Peter Monadjemi

Publisher Resources

ISBN: 9781492067368