BIS fnc ordinalNumber: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {2,}\}\}" to " }}") |
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | arma3 |
Revision as of 11:36, 23 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Strings
Syntax
- Syntax:
- Syntax needed
- Parameters:
- number: Number
- language: String - (Optional, current game language)
- isFeminine: Boolean - (Optional, default false)
- Return Value:
- Return value needed
Examples
- Example 1:
_second = [42] call BIS_fnc_ordinalNumber; // will return "42nd" for English-speaking players
- Example 2:
_num1enm = [1, "English", false] call BIS_fnc_ordinalNumber; // returns "1st" _num1frm = [1, "French", false] call BIS_fnc_ordinalNumber; // returns "1er" _num1frw = [1, "French", true] call BIS_fnc_ordinalNumber; // returns "1re" _num1esm = [1, "Spanish", false] call BIS_fnc_ordinalNumber; // returns "1" _num1esw = [1, "Spanish", true] call BIS_fnc_ordinalNumber; // returns "1*" for Portuguese, Italian and Spanish
- Example 3:
_num1en = [1, "English"] call BIS_fnc_ordinalNumber; // returns "1st" _num1en = [2, "English"] call BIS_fnc_ordinalNumber; // returns "2nd" _num1en = [3, "English"] call BIS_fnc_ordinalNumber; // returns "3rd" _num1en = [4, "English"] call BIS_fnc_ordinalNumber; // returns "4th" _num1en = [9, "English"] call BIS_fnc_ordinalNumber; // returns "9th"
- Example 4:
_second = [1, "unknownLanguage"] call BIS_fnc_ordinalNumber; // will return "1." if language is not recognised/supported
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note