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

    -- (decrement)

  • Examples

    Player:
    {
    var1: 3
    var2:
    var3:

    Event: Game_Start {
    var1--
    // Decrements the value of player property var1

    var2 = --var1
    // Decrements the value of player property var1 before assigning the value to var2

    var3 = var1--
    // Decrements the value of player property var1 after assigning the value to var3

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

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

    • variable--
    • --variable
  • Related

    • - (minus)

    • -= (subtract assign)

    • ++ (increment)

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

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