BIS fnc phoneticalWord: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-z ])" to "$1 - p$2") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.00 | |version1= 1.00 | ||
Line 9: | Line 8: | ||
|descr= Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet. | |descr= Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet. | ||
|s1= [integer, short] | |s1= [integer, short] call [[BIS_fnc_phoneticalWord]] | ||
|p1= integer: [[Number]] - | |p1= integer: [[Number]] - any integer from 1 to 26. | ||
|p2= short: [[Boolean]] - (Optional, default [[false]]) [[true]] for the short version, [[false]] for the long version. | |p2= short: [[Boolean]] - (Optional, default [[false]]) [[true]] for the short version, [[false]] for the long version. | ||
|r1= [[String]] - | |r1= [[String]] - phonetical word or letter of alphabet. In case of full word the returned string [[isLocalized|is localised]]. | ||
|x1= < | |x1= <sqf>[1] call BIS_fnc_phoneticalWord; // returns "Alpha"</sqf> | ||
|x2= < | |x2= <sqf>[1, true] call BIS_fnc_phoneticalWord; // returns "A"</sqf> | ||
|seealso= [[BIS_fnc_ordinalNumber]] | |seealso= [[BIS_fnc_ordinalNumber]] [[BIS_fnc_romanNumeral]] | ||
}} | }} |
Latest revision as of 15:46, 8 November 2023
Description
- Description:
- Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.
- Execution:
- call
- Groups:
- Strings
Syntax
- Syntax:
- [integer, short] call BIS_fnc_phoneticalWord
- Parameters:
- integer: Number - any integer from 1 to 26.
- short: Boolean - (Optional, default false) true for the short version, false for the long version.
- Return Value:
- String - phonetical word or letter of alphabet. In case of full word the returned string is localised.
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_ordinalNumber BIS_fnc_romanNumeral
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