Skip to content

string.plural

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Returns a plural version of the provided string.

pl = string.plural("str")

Parameters

str is the string to be made plural.

Return Value

A plural version of the provided string.

Availability

Premake 5.0 or later.

Examples

-- returns "projects"
pl = string.plural("project")

-- returns "stories"
pl = string.plural("story")
Clone this wiki locally