Skip to content

Ternary Operator '?' #403

Closed
Closed
@lavender-programming

Description

@lavender-programming

In a lot languages, the ones I can think of are C++, and C# a '?' question mark can be used to do ternary operators.
C++/C#: result = (a >= 45) ? "true": "false";
QB64?: Print (a >= 45) ? "true": "false"
It could make simple if statements easier, and stuff.
The options could be uses of function too like: clamp(1, a, 10) or something.
Just a more compact, and easier way to do smaller conditional things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions