BIS fnc phoneticalWord: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) (Fix Category:Pages using duplicate arguments in template calls and description) |
||
Line 1: | Line 1: | ||
{{Function | |||
|game1= arma3 | |||
| | |version1= 1.00 | ||
| | |descr= Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet. | ||
| | |s1= [integer, short] [[call]] [[BIS_fnc_phoneticalWord]] | ||
| | |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. | ||
| | |r1= [[String]] - Phonetical word or letter of alphabet. In case of full word the returned string [[isLocalized|is localised]]. | ||
| [[ | |x1= <code>[1] [[call]] [[BIS_fnc_phoneticalWord]]; {{cc|Returns "Alpha"}}</code> | ||
|x2= <code>[1, [[true]]] [[call]] [[BIS_fnc_phoneticalWord]]; {{cc|Returns "A"}}</code> | |||
|x2= <code>[ 1,[[true]] ] [[call]] | |||
|seealso= [[BIS_fnc_ordinalNumber]], [[BIS_fnc_romanNumeral]] | |||
}} | }} | ||
Revision as of 19:17, 11 March 2020
Description
- Description:
- Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.
- Execution:
- call
- Groups:
- Uncategorised
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:
[1] call BIS_fnc_phoneticalWord; // Returns "Alpha"
- Example 2:
[1, true] call BIS_fnc_phoneticalWord; // Returns "A"
Additional Information
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