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

    && (and)

  • Examples

    Character: char{

    Event: "Attack" {
    player.life -= rand(0,damage)
    life -= rand(0,player.damage)

    // If the property life on player is less than or equal to 0,
    // or if the character has the item elfbane and the player is an elf
    // the player dies, and the game is ended

    if (player.life <= 0 || hasItem("elfbane") && player.race == "Elf")
    endGame("You have died to "+getname()+".")
    }
    }
  • Description

    Combines two expressions and returns true only if both evaluate to true. Returns false if one or both evaluate to false.

    Can also be used in a sequence and combined with the or operators
  • Syntax

    • expression1 && expression2
    • expression1 && expression2 && ... && expressionN
  • Related

    • ! (not)

    • || (or)

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

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