I had written the below code to ignore the statements based on if condition, But find no luck. Can any one do let me know what's wrong in my below code
$myListColl = $eachWeb.Lists; $mylistsToIgnore=101 foreach ($eachList in $oListColl) { if($mylistsToIgnore==$eachList.TempladID) { //Ignore statement } else { //Other Statement } }