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(3.14, {})
Raw function spec json
{
  "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,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlListStatistics",
  "private": false,
  "takesSelf": false,
  "name": "ListStatistics",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Operation",
          "desc": "One of LIST_STAT_* values",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "ListVariable",
          "desc": "Variable to analyze.",
          "type": [
            {
              "def": "simple",
              "value": "list"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll