BIS fnc swapVars: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " \| arma2  \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1  |game2= arma2oa |version2= 1.50  |game3= tkoh |version3= 1.00  |game4= arma3 |version4= 0.50 ")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) *  \|game2" to "|game1= arma2 |version1= $1  |game2")  | 
				||
| Line 1: | Line 1: | ||
{{RV|type=function  | {{RV|type=function  | ||
| arma2  | |game1= arma2  | ||
|1.00  | |version1= 1.00  | ||
|game2= arma2oa  | |game2= arma2oa  | ||
Revision as of 00:20, 14 June 2021
Description
- Description:
 - Swaps the values of two variables passed as String.
Nothing is returned as this function modifies the variables directly. - Execution:
 - call
 - Groups:
 - Variables
 
Syntax
- Syntax:
 - [variableName1, variableName2] call BIS_fnc_swapVars
 - Parameters:
 - variableName1: String
 - variableName2: String
 - Return Value:
 - Nothing
 
Examples
- Example 1:
 _a = 1; _b = 2; ["_a", "_b"] call BIS_fnc_swapVars; _a == 2; // true _b == 1; // true
Additional Information
- See also:
 - See also needed
 
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