From what I know, PowerShell doesn\'t seem to have a built-in expression for the so-called ternary operator.
For example, in the C language, which supports the terna
Since I have used this many times already and didn't see it listed here, I'll add my piece :
$var = @{$true="this is true";$false="this is false"}[1 -eq 1]
ugliest of all !
kinda source