32 or 64 bit version of product: 64-bit
Operating system: Windows 10 Pro
32 or 64 bit OS: 64-bit
Noticed an issue I believe with Switch statements relating to a $true $false definition.
With the below code Compress-Archive will not be syntax highlighted and tab completions do not function.
*Not Working
- $test = $true
- Switch ($test)
- {
- $true{
- }
- $false{
- $sample |Compress-Archive -Destinationpath 'C:\test.zip'
- }
- }
*Working
- Switch ($test)
- {
- $true {
- }
- $false {
- $sample | Compress-Archive -Destinationpath 'C:\test.zip'
- }
- }