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

    ?: (conditional)

  • Examples

    Character:butler {
    name: "Butler"

    Event: "Greet"{
    displaySpeech("Good day, " + (player.gender == "male" ? "sir" : "madam" ) + ". How may I help?")

    /*
    if male:
    Good day, sir. How may I help?
    else:
    Good day, madam. How may I help?
    */
    }
    }
  • Description

    A shorter version of the if and else statement structure. If the expression evaluates to true, statement1 is executed, otherwise statement2 is executed.
  • Syntax

    • expression ? statement1 : statement2
  • Related

    • else

    • if

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

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