File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#include " script_component.hpp"
22/* ----------------------------------------------------------------------------
3- Function: cba_fnc_convertStringCode
3+ Function: CBA_fnc_convertStringCode
44
55Description:
66 Converts a String into Code - Also checks for existing Functions with that name.
77
88Parameters:
9- _str - Code as String <STRING>
9+ _str - Code as String <STRING>
1010
1111Returns:
1212 Code as Code <CODE>
1313
1414Examples:
1515 (begin example)
16- getText (_cfg >> "statement") call cba_fnc_convertStringCode
16+ getText (_cfg >> "statement") call CBA_fnc_convertStringCode
1717 (end)
1818
1919Author:
2020 OverlordZorn
2121---------------------------------------------------------------------------- */
22-
23-
24- params [ [" _stringCode" , " " , [" " ] ] ];
22+ params [[" _stringCode" , " " , [" " ]]];
2523
2624switch (true ) do {
27- case (_stringCode isEqualTo " " ): { {} };
28- case (! (missionNamespace isNil _stringCode )): { missionNamespace getVariable _stringCode };
29- case (! (uiNamespace isNil _stringCode )): { uiNamespace getVariable _stringCode };
30- default { compile _stringCode };
25+ case (_stringCode isEqualTo " " ): {{} };
26+ case (! (missionNamespace isNil _stringCode )): {missionNamespace getVariable _stringCode };
27+ case (! (uiNamespace isNil _stringCode )): {uiNamespace getVariable _stringCode };
28+ default {compile _stringCode };
3129}
You can’t perform that action at this time.
0 commit comments