Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

count specific number in array powershell

$grades = @($g1, $g2, $g3, $g4, $g5, $g6)

$countCredit = for($x=0; $grades -gt 50 ; $x++) { $x.count }
Write-Host "Credits Earned: " $countCredit 
 
PREVIOUS NEXT
Tagged: #count #specific #number #array #powershell
ADD COMMENT
Topic
Name
6+7 =