We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4cb50 commit 3a9c8eeCopy full SHA for 3a9c8ee
examples/02_control_flow/05_Conditional expression.md
@@ -1,7 +1,6 @@
1
# Conditional Expression
2
3
-There is no ternary operator (condition ? then : else) in Kotlin instead `if` expression could be used in the same way.
4
-Let's take a look
+There is no ternary operator `condition ? then : else` in Kotlin. Instead, `if` may be used as an expression:
5
6
<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">
7
@@ -17,4 +16,4 @@ fun main() {
17
16
18
</div>
19
20
-1. `if` is an expression, i.e. it returns a value.
+1. `if` is an expression here, i.e. it returns a value.
0 commit comments