Menu

Posible bug on ternary operator

Help
Luciano
2021-08-13
2022-08-10
  • Luciano

    Luciano - 2021-08-13

    Hi, i don't know how to report this, if it is a bug report.

    When doing an expression like this, in the ruler/studio

    TestValue = -100
    NewValue = $TestValue == null ? 0: |-$TestValue|

    We get the error
    Lexical error at line 1, column 27. Encountered: "-" (45), after : "|"

    This was working at least on 5.22.7.

    Attached screenshot showing this in only web studio version.

    [image: image.png]

     
  • Elena Kosolapova

    Hello,
    Your question is moved to the Github OpenL Discussions.
    You can track it by the following link:
    https://github.com/openl-tablets/openl-tablets/discussions/644

    Best regards,
    Alena.

     

Log in to post a comment.