Josh King 9/24/2019

Getting Familiar with the Ternary Operator in PowerShell 7

Read Original

This technical article introduces the ternary operator (? :) added in PowerShell 7 Preview 4. It explains the operator's syntax, provides a comparison to standard if/else logic, and includes a performance benchmark test to see if the new operator offers any speed advantages over the traditional method.

Getting Familiar with the Ternary Operator in PowerShell 7

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes