Dynamic Icons Scripting Reference - v1.3.0
    Preparing search index...

    Function parseNumericArrayString

    • Parses a string of CSV numbers and inserts them into given dest array. Destination array is not cleared first. Each individual value in the list is run through evaluateValue() function, allowing math, etc. Commas inside parenthesis are ignored as separators, allowing use of functions which take multiple arguments. e.g. "(45 * Math.PI / 2), 20, Math.pow(8, 10)" would result in an array of three values. If evaluation fails for a value then a zero is used instead (see also evaluateValue()). If maxCount is not zero then only up to this many values will be parsed. Values can be optionally filtered by min/max range. Invalid values are silently skipped. Returns true if any non-zero members were added, false otherwise.

      Parameters

      • value: string
      • dest: number[]
      • maxCount: number = 0
      • minValue: number = -Number.MAX_VALUE
      • maxValue: number = Number.MAX_VALUE

      Returns boolean