Is there a null coalescing operator in powershell?
I\'d like to be able to do these c# commands in powershell:
var s = myval ?? \"new value\"; var x
Finally, PowerShell 7 got Null Coalescing assignment operators!
PS > $null ?? "a" a PS > "x" ?? "y" x PS > $x = $null PS > $x ??= "abc" PS > $x abc PS > $x ??= "xyz" PS > $x abc