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

    String

  • Name

    substr()

  • Examples

    Player: {
    str: "abcdef"

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

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

    Returns a substring of the characters that start at the given start and with a length given by len. If no length is given, then all remaining characters after the start index will be included.
  • Syntax

    • string.substr()
    • string.substr(start)
    • string.substr(start,len)
  • Related

    • charAt()

    • substring()

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

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