Difference between revisions of "MIST stringCondense"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.stringCondense| |vNum = Mist 4.5 |desc= Returns a string with certain special characters and spaces removed. Is used by MIST stringMatch|...")
 
 
Line 72: Line 72:
  
 
}}
 
}}
[[Category: MIST|stringMatch]]
+
[[Category: MIST|stringCondense]]

Latest revision as of 07:31, 23 August 2021


mist.stringCondense

Added with: Mist 4.5
Description
Returns a string with certain special characters and spaces removed. Is used by mist.stringMatch to remove the characters.
Syntax
string mist.stringCondense(string s )
Valid Input Values:
'F-18Group1'
Return value:
string
Return example:
f18Group1
Usage Examples:
Notes:
Characters removed:
-  (   )  _   [   ]  .   ,   #   {  }  $  %  ?   +  ^ 

It also removes spaces between characters.

Related Functions
makeUnitTable, getRandPointInCircle, getRandomPointInZone, getRandomPointInPoly, isTerrainValid, terrainHeightDiff, getUnitsInZones, getUnitsInMovingZones, pointInPolygon, getUnitsInPolygon, getDeadMapObjsInZones, getDeadMapObjsInPolygonZone, getUnitsLOS, random, randomizeNumTable, getAvgPoint, getQFE, getWindBearingAndVel, getPathLength, getPathInSegments, getPointAtDistanceOnPath, projectPoint, getGroupsByAttribute, , getUnitsByAttribute, mapValue,

Scripting Engine

MIST Root Page