How do I create an a statement with an inline If (IIf, see also: Immediate if or ternary If) in PowerShell?
If you also think that this should be a native Po
Here is another way:
$condition = $false "The condition is $(@{$true = "true"; $false = "false"}[$condition])"