on-internet
← Community

How to validate powershell conditional syntax?

Stack Overflow ·

Is there a syntax checker for conditionals in PowerShell? This code will skip the conditional if ($templList -ne $null -and $templList.items.Length > 0) { $templID=$templList.items[0].id write-host $templList.items } because the '-gt' is substituted with '>'.

Comments

Sign in or sign up to comment and upvote.

No comments yet.