Waffle SS.
Using markerType is a good method to determine if a string is a valid marker name, unless the marker type isn't set.
if (markerType "mark1" != "") then {hint "valid marker"}
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Gets type of marker. See CfgMarkers for a list of standard markers.
markerType markerName
Parameters:
markerName: StringReturns: String - marker class name. See CfgMarkers.
if (markerType "Marker1" == "") then { hint "Marker1 is not an icon!" };
setMarkerType · setMarkerTypeLocal
Using markerType is a good method to determine if a string is a valid marker name, unless the marker type isn't set.
if (markerType "mark1" != "") then {hint "valid marker"}