PowerShell - Operators
Which of the following correctly demonstrates the ternary operator usage in PowerShell 7+ to assign $result based on $value being greater than 10?
condition ? true-value : false-value.-gt for comparison and the ternary operator with colon separating true and false values.-gt for clarity and consistency.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions