Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
You want to do
$arrayOfString.Title -eq $myPbiject.item(0).Title
-match is for regex matching ( the second argument is a regex )
You can do it in two different ways.
Option 1: The
>$a = "is" >$b = "fission" >$c = "is" >$a -eq $c True >$a -eq $b False
Option 2: The
.Equals() method of the
string object. Because strings in PowerShell are .Net
System.String objects, any method of that object can be called directly.
>$a.equals($b) False >$a.equals($c) True >$a|get-member -membertype method
System.String methods follows.