https://github.com/fluxnull/use-ternary
Use-Ternary is a PowerShell function that emulates a ternary operator (condition ? trueValue : falseValue) in PowerShell 5.0. It simplifies conditional expressions, improving readability while maintaining efficiency.
https://github.com/fluxnull/use-ternary
powershell powershell5 ternary ternary-operator
Last synced: 4 months ago
JSON representation
Use-Ternary is a PowerShell function that emulates a ternary operator (condition ? trueValue : falseValue) in PowerShell 5.0. It simplifies conditional expressions, improving readability while maintaining efficiency.
- Host: GitHub
- URL: https://github.com/fluxnull/use-ternary
- Owner: fluxnull
- Created: 2025-03-01T04:14:54.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-01T05:20:19.000Z (12 months ago)
- Last Synced: 2025-03-01T05:27:37.410Z (12 months ago)
- Topics: powershell, powershell5, ternary, ternary-operator
- Language: PowerShell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0