BIS fnc phoneticalWord: Difference between revisions
Jump to navigation
Jump to search
m (page filling) |
m (formatting) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Convert | | Convert integer to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [ | | [integer,short] [[call]] '''BIS_fnc_phoneticalWord'''; |= Syntax | ||
|p1= ''' | |p1= '''integer:''': [[Integer]] - Any integer from 1 to 26. |= paramter 1 | ||
|p2= '''short:''': [[Boolean]] - [[true]] for the short version, [[false]] for the long version. |= paramter 2 | |p2= '''short:''': [[Boolean]] - [[true]] for the short version, [[false]] for the long version. |= paramter 2 | ||
Line 20: | Line 20: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>[ 1 ] [[call]] '''BIS_fnc_phoneticalWord'''; //Returns "Alpha"</code> |= example 1 | ||
|x2= <code> | |x2= <code>[ 1,[[true]] ] [[call]] '''BIS_fnc_phoneticalWord''' //Returns "A"</code> |= example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 15:32, 8 May 2018
Description
- Description:
- Convert integer 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:: Integer - Any integer from 1 to 26.
- short:: Boolean - 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