FlashtodayÖ

Out of context: Reply #6

  • Started
  • Last post
  • 11 Responses
  • kpl0

    what 4cy said plus:

    the ? : construct is a conditional... like an if...else statement.
    it works like this:

    (statement) ? (value) : (value);

    if the statement evaluates as true (non-zero), then it returns the first value. otherwise, it'll return the 2nd value.

    ie.

    test = 1 ? "yep" : "nope";
    //test equals "yep"

    so, nope, Avar doesn't equal a number... just true or false.

View thread