This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $game = New-Object psObject -Property @{ | |
| players = @() | |
| places = 0,0,0,0,0,0 | |
| purses = 0,0,0,0,0,0 | |
| inPenaltyBox = [bool[]](0,0,0,0,0,0) | |
| popQuestions = @() | |
| scienceQuestions = @() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This works: | |
| $a = '' | |
| $b = @('') | |
| ( $a -eq $b ) -ne ( $b -eq $a ) | |
| now, the ( $a -eq $b ) is true, because $b is converted to string -> all the array members are converted to string and then concatenated by $ofs -> | |
| it equals ('' -eq '') which is true | |
| then ( $b -eq $a ) means (@('') -eq '') - this returns all items from array (left operand) that are equal to right operand -> it's array of '' | |
| now array of '' is converted to boolean value |
OlderNewer