BIS fnc phoneticalWord: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1// $2</code>")
m (Some wiki formatting)
Line 16: Line 16:
|r1= [[String]] - Phonetical word or letter of alphabet. In case of full word the returned string [[isLocalized|is localised]].
|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; // Returns "Alpha"</code>
|x1= <sqf>[1] call BIS_fnc_phoneticalWord; // returns "Alpha"</sqf>


|x2= <code>[1, true] call BIS_fnc_phoneticalWord; // Returns "A"</code>
|x2= <sqf>[1, true] call BIS_fnc_phoneticalWord; // returns "A"</sqf>


|seealso= [[BIS_fnc_ordinalNumber]] [[BIS_fnc_romanNumeral]]
|seealso= [[BIS_fnc_ordinalNumber]] [[BIS_fnc_romanNumeral]]
}}
}}

Revision as of 23:37, 12 July 2022

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