ll.ListStatistics

ll.ListStatistics(Operation: number, ListVariable: list) : number

Performs a statistical aggregate function, specified by a LIST_STAT_* constant, on ListVariables. This function allows a script to perform a statistical operation as defined by operation on a list composed of integers and floats.

Example

ll.ListStatistics(6, {})
{
  "def": "func",
  "desc": "Performs a statistical aggregate function, specified by a LIST_STAT_* constant, on ListVariables.\nThis function allows a script to perform a statistical operation as defined by operation on a list composed of integers and floats.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlListStatistics",
  "name": "ListStatistics",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Operation",
          "desc": "One of LIST_STAT_* values",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "ListVariable",
          "desc": "Variable to analyze.",
          "type": [
            "list"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll