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

    String

  • Name

    split()

  • Examples

    Player: {
    str: "2,2,3,4"

    Event: Game_Start {
    this.list = str.split(",")

    foreach(list as entry){
    print(entry)
    /*
    Output:
    2
    2
    3
    4
    */
    }
    }
    }
  • Description

    Splits the string into a list of substrings by dividing it at every occurrence of a given pattern.

    If a limit is given, the number of entries put in the returned list is restricted to that limit.
  • Syntax

    • string.split(pattern)
    • string.split(pattern,limit)
  • Related

    • join

    • List

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

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