Difference between revisions of "MIST stringMatch"
From DCS World Wiki - Hoggitworld.com
(No difference)
|
Revision as of 23:11, 13 April 2018
mist.stringMatch
Added with: Mist 3.5 |
Description |
Returns a boolean value based on a comparison between the two passed strings. Function removes a number of special characters if present. If optional caseSensitive value is passed the comparison will be case sensitive. |
Syntax |
boolean mist.stringMatch(string s1 ,string s2 , boolean caseSensitive ) |
Valid Input Values: |
s1 = 'F-18Group1'
s2 = 'f18group1' |
Return value: |
boolean |
Return example: |
true |
Usage Examples: |
do if mist.stringMatch('F-18Group1', 'f18group1') == true then env.info('Easy Rhino cleared hot') end end |
Notes: |
Can also be called via mist.matchString() with the same input variables
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, |