Skip to content

Commit 945f48e

Browse files
Update age < 0 condition
1 parent e28dcbe commit 945f48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/branching_logic/conditional_operator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Just like multiple if else statements, we have the concept to "chain" ternary op
2929
~void main() {
3030
int age = 22;
3131

32-
String message = age < 0
33-
? "You are not born yet"
32+
String message = age <= 0
33+
? "You do not exist yet"
3434
: age > 100
3535
? "Sorry, you are too old."
3636
: age < 25

0 commit comments

Comments
 (0)