BIS fnc phoneticalWord: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page filling)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-z ])" to "$1 - p$2")
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Strings


|1.00|= Game version
|descr= Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.
____________________________________________________________________________________________


| Convert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.|= Description
|s1= [integer, short] call [[BIS_fnc_phoneticalWord]]
____________________________________________________________________________________________


| [number,short] [[call]] '''BIS_fnc_phoneticalWord'''; |= Syntax
|p1= integer: [[Number]] - any integer from 1 to 26.


|p1= '''number:''': [[Number]] - Any number from 1 to 26. |= paramter 1
|p2= short: [[Boolean]] - (Optional, default [[false]]) [[true]] for the short version, [[false]] for the long version.


|p2= '''short:''': [[Boolean]] - [[true]] for the short version, [[false]] for the long version. |= paramter 2
|r1= [[String]] - phonetical word or letter of alphabet. In case of full word the returned string [[isLocalized|is localised]].


| [[String]] - Phonetical word or letter of alphabet. In case of full word the returned string is [[isLocalized|localised]]. |= Return value
|x1= <sqf>[1] call BIS_fnc_phoneticalWord; // returns "Alpha"</sqf>
____________________________________________________________________________________________


|x1= <code>_word = [1] [[call]] '''BIS_fnc_phoneticalWord'''; //Returns "Alpha"</code> |= example 1
|x2= <sqf>[1, true] call BIS_fnc_phoneticalWord; // returns "A"</sqf>
 
|x2= <code>_word = [1,true] [[call]] '''BIS_fnc_phoneticalWord''' //Returns "A"</code> |= example 2
____________________________________________________________________________________________
 
| [[BIS_fnc_ordinalNumber]], [[BIS_fnc_romanNumeral]] |= See also


|seealso= [[BIS_fnc_ordinalNumber]] [[BIS_fnc_romanNumeral]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Strings|{{uc:phoneticalWord}}]]
[[Category:Functions|{{uc:phoneticalWord}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:phoneticalWord}}]]

Latest revision as of 15:46, 8 November 2023

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:
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:
[1] call BIS_fnc_phoneticalWord; // returns "Alpha"
Example 2:
[1, true] call BIS_fnc_phoneticalWord; // returns "A"

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