GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Windows/System32/WindowsPowerShell/v1.0/en-US/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Windows/System32/WindowsPowerShell/v1.0/en-US/about_Logical_Operators.help.txt

ABOUT_LOGICAL_OPERATORS


SHORT DESCRIPTION

Describes the operators that connect statements in PowerShell.


LONG DESCRIPTION

The PowerShell logical operators connect expressions and statements,
allowing you to use a single expression to test for multiple conditions.

For example, the following statement uses the and operator and the or
operator to connect three conditional statements. The statement is true
only when the value of $a is greater than the value of $b, and either $a or
$b is less than 20.

    ($a -gt $b) -and (($a -lt 20) -or ($b -lt 20))

PowerShell supports the following logical operators.

  Operator   Description                          Example
  ---------- ------------------------------------ --------------------------
  -and       Logical AND. TRUE when both          (1 -eq 1) -and (1 -eq 2)
             statements are TRUE.                 False
  -or        Logical OR. TRUE when either         (1 -eq 1) -or (1 -eq 2)
             statement is TRUE.                   True
  -xor       Logical EXCLUSIVE OR. TRUE when      (1 -eq 1) -xor (2 -eq 2)
             only one statement is TRUE           False
  -not       Logical not. Negates the statement   -not (1 -eq 1)
             that follows.                        False
  !          Same as -not                         !(1 -eq 1)
                                                  False

Note:

The previous examples also use the equal to comparison operator -eq. For
more information, see about_Comparison_Operators. The examples also use the
Boolean values of integers. The integer 0 has a value of FALSE. All other
integers have a value of TRUE.

The syntax of the logical operators is as follows:

    <statement> {-AND | -OR | -XOR} <statement>
    {! | -NOT} <statement>

Statements that use the logical operators return Boolean (TRUE or FALSE)
values.

The PowerShell logical operators evaluate only the statements required to
determine the truth value of the statement. If the left operand in a
statement that contains the and operator is FALSE, the right operand is not
evaluated. If the left operand in a statement that contains the or
statement is TRUE, the right operand is not evaluated. As a result, you can
use these statements in the same way that you would use the If statement.


SEE ALSO

about_Operators

Compare-Object

about_Comparison_operators

about_If

Anon7 - 2022
AnonSec Team