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

    ++ (increment)

  • Examples

    Player:
    {
    var1: 2
    var2:
    var3:

    Event: Game_Start {
    var1++
    // Increments the value of player property var1

    var2 = ++var1
    // Increments the value of player property var1 before assigning the value to var2

    var3 = var1++
    // Increments the value of player property var1 after assigning the value to var3

    // player property var1 and var2 are equal to each other in this example.
    }
    }
  • Description

    Increases the value of a property by 1. Equals to i = i + 1. Placing ++ at the beginning of a property will increment it before the statement is processed, while placing it at the end will increment it after the statement has been processed.
  • Syntax

    • variable++
    • ++variable
  • Related

    • + (addition)

    • += (add assign)

    • -- (decrement)

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

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