ll.SubStringIndex

ll.SubStringIndex(Text: string, Sequence: string) : number

Returns an integer that is the index in Text where string pattern Sequence first appears. Returns -1 if not found.

Example

ll.SubStringIndex('test', 'test')
{
  "def": "func",
  "desc": "Returns an integer that is the index in Text where string pattern Sequence first appears. Returns -1 if not found.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlSubStringIndex",
  "name": "SubStringIndex",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Text",
          "desc": "",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Sequence",
          "desc": "",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll