-
Notifications
You must be signed in to change notification settings - Fork 53
Operator
- Comparison
- Bitwise
- Logical
- Format
- Assignment
- Logical NOT
- Multiplicative
- Increment
- Decrement
- Unary plus
- Unary minus
- Additive
- Range
- Command invocation (call)
Comparison operators are used to compare values and test conditions.
List of comparison operators:
-as-is-isnot-in-notin-[(c|i)]eq-[(c|i)]ne-[(c|i)]gt-[(c|i)]lt-[(c|i)]ge-[(c|i)]le-[(c|i)]like-[(c|i)]notlike-[(c|i)]contains-[(c|i)]notcontains-[(c|i)]match-[(c|i)]notmatch
The following scope are assigned to comparison operators:
- keyword.operator.comparison
List of bitwise operators:
-bAND-bOR-bXOR-bNOT-shl-shr
The following scope are assigned to bitwise operators:
- keyword.operator.bitwise
List of logical operators:
-and-or-xor
The following scope are assigned to logical operators:
- keyword.operator.logical
List of format operators:
-f
The following scope are assigned to format operators:
- keyword.operator.format
List of assignment operators:
=-=+=*=\=
The following scope are assigned to assignment operators:
- keyword.operator.assignment
List of logical NOT operators:
-not!
The following scope are assigned to logical NOT operators:
- keyword.operator.unary.logical-not
List of multiplicative operators:
*%
The following scope are assigned to multiplicative operators:
- keyword.operator.multiplicative
List of increment operators:
++
The following scope are assigned to increment operators:
- keyword.operator.increment
List of decrement operators:
++
The following scope are assigned to decrement operators:
- keyword.operator.decrement
List of unary plus operators:
+
The following scope are assigned to unary plus operators:
- keyword.operator.unary-plus
List of unary minus operators:
-
The following scope are assigned to unary minus operators:
- keyword.operator.unary-minus
List of additive operators:
+-
The following scopes are assigned to additive operators:
- keyword.operator.additive
List of range operators:
..
The following scopes are assigned to range operators:
- keyword.operator.range
List of call operators:
&
The following scopes are assigned to call operators
- keyword.operator.other
Use
- Prerequisites
- Workflow
- Tests
- Comment
- String
- Numeric constant
- Type
- Function
- Command (Cmdlet)
- Class
- Enum
- Switch
- Array
- Hashtable
- Subexpression
- Control
- Variable
- Operator