Auto fill end condition commentary

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
User avatar
Posts: 100
Joined: Tue Jul 10, 2012 10:37 am

Auto fill end condition commentary

Post by owinsloe »

It would be nice if you could set an option to place commentary at the end of scriptblocks such as if,do,switch,while,try etc etc.

This provides an nice visible method of determining where the completion of each code block concludes.


If (-not $User)
#Obtaining Local Account SIDs for $Bin.Name comparison.
Log "Get-WmiObject -Class Win32_UserAccount"
$WMI_UsrAcct = Get-WmiObject -Class Win32_UserAccount -ComputerName $Computer -Filter "Domain = '$Computer'"
#Using a While Loop to search Local User Accounts for Matching $Bin.Name
$i = 0
While ($i -le $WMI_UsrAcct.Count)
If ($WMI_UsrAcct[$i].SID -eq $Bin.Name)
$User = $WMI_UsrAcct[$i].Caption
} #End If ($WMI_UsrAcct[$i].SID -eq $Bin.Name)
} #End While ($i -le $WMI_UsrAcct.Count)
} #End If (-not $User)

User avatar
Site Admin
Posts: 686
Joined: Thu Jun 01, 2017 7:20 am
Answers: 10
Been upvoted: 8 times

Re: Auto fill end condition commentary

Post by brittneyr »

You are welcome to file a feature request here and our development team will look into it:
Brittney Ryn
SAPIEN Technologies, Inc.