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
This post is available on GitHub.
Posted .

Comments

Leave a Reply