Unexpected compilation error with if() and local vars

Comments

4 comments

  • Rogier Mulhuijzen

    Currently, the if() function only returns STRING types, and thus doesn't work with non-string variables.

    So it's not really a bug, it's more of a lack in features. I'll have a chat with someone working on the compiler.

  • Rogier Mulhuijzen

    Internal ticket for this issue has been created.

  • Rogier Mulhuijzen

    It does actually say

    Implements a ternary operator for strings

    :innocent:

  • ian.dees

    It does indeed! Apologies.

Please sign in to leave a comment.