PowerShell trick

Do you know how to change the script below to make it true?

((‘first’,’second’))[0][1] -eq ((‘first’,’second’),(‘first’,’second’))[0][1]

I want to get ‘second‘ from the left operand ((‘first’,’second’))[0][1]

(,(‘first’,’second’))[0][1] comma is not a solution as it will not work for (,(‘first’,’second’),(‘first’,’second’))[0][1]

(,(‘first’,’second’))[0][1] -eq (,(‘first’,’second’),(‘first’,’second’))[0][1] will still return False

Advertisements