Using this operator in PowerShell 7 means, you can write a PowerShell expression like this:
$IsWindows ? "ok":"not ok"
The traditional If statement alternative would be:
Their implementation pretty much matches C#’s. Read on for additional testing Jeffery did and a few more examples.