12345678910111213141516171819202122232425262728293031 |
- /*
- Name: cTab_fnc_isDialog
-
- Author(s):
- Gundy
- Description:
- Check if interface name ends with "dlg"
-
- Parameters:
- 0: Name of interface
-
- Returns:
- BOOLEAN - True if interface name ends with "dlg"
-
- Example:
- // returns true
- ["cTab_Tablet_dlg"] call cTab_fnc_isDialog;
-
- // returns false
- ["cTab_TAD_dsp"] call cTab_fnc_isDialog;
- */
- private ["_interfaceName","_subArray"];
- _interfaceName = _this select 0;
- // select the last three characters from the interface name
- _subString = _interfaceName select [(count _interfaceName) - 3];
- if (_subString == "dlg") then {true} else {false};
|