BIS fnc ordinalNumber: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 21: | Line 21: | ||
|x2= <code>private _num1enm = [1, "English", false] call BIS_fnc_ordinalNumber; {{cc|returns "1st"}} | |x2= <code>private _num1enm = [1, "English", false] call BIS_fnc_ordinalNumber; {{cc|returns "1st"}} | ||
_num1frm = [1, "French", false] | _num1frm = [1, "French", false] call [[BIS_fnc_ordinalNumber]]; {{cc|returns "1er"}} | ||
_num1frw = [1, "French", [[true]]] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "1re"}} | _num1frw = [1, "French", [[true]]] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "1re"}} | ||
_num1esm = [1, "Spanish", [[false]]] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "1"}} | _num1esm = [1, "Spanish", [[false]]] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "1"}} | ||
Line 28: | Line 28: | ||
|x3= <code>private _num1en = [1, "English"] call BIS_fnc_ordinalNumber; {{cc|returns "1st"}} | |x3= <code>private _num1en = [1, "English"] call BIS_fnc_ordinalNumber; {{cc|returns "1st"}} | ||
_num2en = [2, "English"] call BIS_fnc_ordinalNumber; {{cc|returns "2nd"}} | _num2en = [2, "English"] call BIS_fnc_ordinalNumber; {{cc|returns "2nd"}} | ||
_num3en = [3, "English"] | _num3en = [3, "English"] call [[BIS_fnc_ordinalNumber]]; {{cc|returns "3rd"}} | ||
_num4en = [4, "English"] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "4th"}} | _num4en = [4, "English"] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "4th"}} | ||
_num9en = [9, "English"] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "9th"}}</code> | _num9en = [9, "English"] [[call]] [[BIS_fnc_ordinalNumber]]; {{cc|returns "9th"}}</code> |
Revision as of 21:40, 12 July 2022
Description
Syntax
- Syntax:
- [number, language, isFeminine] call BIS_fnc_ordinalNumber
- Parameters:
- number: Number
- language: String - (Optional, current game language)
- isFeminine: Boolean - (Optional, default false)
- Return Value:
- String
Examples
- Example 1:
- Example 2:
private _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:
private _num1en = [1, "English"] call BIS_fnc_ordinalNumber; // returns "1st" _num2en = [2, "English"] call BIS_fnc_ordinalNumber; // returns "2nd" _num3en = [3, "English"] call BIS_fnc_ordinalNumber; // returns "3rd" _num4en = [4, "English"] call BIS_fnc_ordinalNumber; // returns "4th" _num9en = [9, "English"] call BIS_fnc_ordinalNumber; // returns "9th"
- Example 4:
Additional Information
- See also:
- language
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