Documentation for infix ?? !!
assembled from the following pages:
Language documentation: Operators §
From Operators
(Operators) infix ?? !! §
Also called ternary or conditional operator, $condition ?? $true !! $false
evaluates $condition
and returns the expression right behind ??, in this case $true
if it is True
, otherwise evaluates and returns the expression behind !!, $false
in this case.