Pluralize Words in AutoIt; Plural Word

Func plural($count, $singular, $plural = "s")
    If $plural == "s" Then
        $plural = $singular & $plural
    EndIf
    Return _Iif($count == 1, $singular, $plural)
EndFunc
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment