You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I hover over the ? operator, I get no info box on it.
Out of the REPL help:
a ? b : c
Short form for conditionals; read "if a, evaluate b otherwise evaluate c". Also known as the ternary operator
(https://en.wikipedia.org/wiki/%3F:).
This syntax is equivalent to if a; b else c end, but is often used to emphasize the value b-or-c which is being used as part of a
larger expression, rather than the side effects that evaluating b or c may have.
See the manual section on control flow for more details.
Examples
≡≡≡≡≡≡≡≡≡≡
julia> x = 1; y = 2;
julia> x > y ? println("x is larger") : println("y is larger")
y is larger
Can we include this?
The text was updated successfully, but these errors were encountered:
If I hover over the
?
operator, I get no info box on it.Out of the REPL help:
Can we include this?
The text was updated successfully, but these errors were encountered: