AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Object

    String

  • Name

    substring()

  • Examples

    Player: {
    str: "abcdef"

    Event: Game_Start {
    print(str.substring(2))
    // Output: cdef

    print(str.substring(2,4))
    // Output: cd
    }
    }
  • Description

    Returns a substring of the characters that start at the given start and end at the last character before the given end. If no end index is given, then all remaining characters after the start index will be included.
  • Syntax

    • string.substring()
    • string.substring(start)
    • string.substring(start,end)
  • Related

    • charAt()

    • substr()

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen