Closed
Description
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
Labels
Type
Projects
Status
Done