Booleans
C# hat einen bool
-Datentyp, der die Werte true
oder false
annehmen kann.
bool isCSharpFun = true;
bool isBroccoliTasty = false;
Logische Operatoren
Der AND-Operator gibt true
zurück, falls beide Statements true
sind.
x < 5 && x < 10;
Zuletzt aktualisiert
War das hilfreich?