Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Unary operation
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====PowerShell==== In the [[PowerShell]], the following operators are unary:<ref name="powershell">{{cite web |title=Expressions - PowerShell |url=https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-07 |website=learn.microsoft.com |publisher=Microsoft |access-date=23 April 2024 |language=en-us |date=3 September 2021}}</ref> *Increment: <code>++<span style="color:gray;">$x</span></code>, <code><span style="color:gray;">$x</span>++</code> *Decrement: <code>--<span style="color:gray;">$x</span></code>, <code><span style="color:gray;">$x</span>--</code> *Positive: <code>+<span style="color:gray;">$x</span></code> *Negative: <code>-<span style="color:gray;">$x</span></code> *Logical negation: <code>!<span style="color:gray;">$x</span></code> *[[Execution (computing)|Invoke]] in current [[Scope (programming)|scope]]: <code>.<span style="color:gray;">$x</span></code> *Invoke in new scope: <code>&<span style="color:gray;">$x</span></code> *Cast: <code>[''type-name''] ''<span style="color:gray;">cast-expression</span>''</code> *Cast: <code>+<span style="color:gray;">$x</span></code> *Array: <code>,<span style="color:gray;">$array</span></code>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)