BIS fnc phoneticalWord: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (page filling)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.|= Description
____________________________________________________________________________________________


Description:
| [number,short] [[call]] '''BIS_fnc_phoneticalWord'''; |= Syntax
Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo")


Parameter(s):
|p1= '''number:''': [[Number]] - Any number from 1 to 26. |= paramter 1
0: NUMBER


Returns:
|p2= '''short:''': [[Boolean]] - [[true]] for the short version, [[false]] for the long version. |= paramter 2
STRING
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[String]] - Phonetical word or letter of alphabet. In case of full word the returned string is [[isLocalized|localised]]. |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_phoneticalWord]]; --> |= Syntax
|x1= <code>_word = [1] [[call]] '''BIS_fnc_phoneticalWord'''; //Returns "Alpha"</code> |= example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=  
|x2= <code>_word = [1,true] [[call]] '''BIS_fnc_phoneticalWord''' //Returns "A"</code> |= example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[BIS_fnc_ordinalNumber]], [[BIS_fnc_romanNumeral]] |= See also


}}
}}

Revision as of 15:25, 8 May 2018


Hover & click on the images for description

Description

Description:
Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[number,short] call BIS_fnc_phoneticalWord;
Parameters:
number:: Number - Any number 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:
_word = [1] call BIS_fnc_phoneticalWord; //Returns "Alpha"
Example 2:
_word = [1,true] call BIS_fnc_phoneticalWord //Returns "A"

Additional Information

See also:
BIS_fnc_ordinalNumberBIS_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

Notes

Bottom Section