Is there a way in PowerShell to do a simple short-circuit evaluation for a variable to take first value or second, if first is empty ?
Like in JS:
let x = '';
let y = '1';
let z = x || y; // '1'
Is there a way in PowerShell to do a simple short-circuit evaluation for a variable to take first value or second, if first is empty ?
Like in JS:
let x = '';
let y = '1';
let z = x || y; // '1'