PowerShell v7 preview 4 adds a Ternary operator to PowerShell.
A ternary operator is a way to provide shortened coding for a simple if-else block. Its an operator that takes three operands rather than the usual two hence the name ternary.
for example… Read the full text.