Skip to content

Ternary expressions#99

Merged
kaidesu merged 3 commits into1.0from
ternary
Jan 25, 2022
Merged

Ternary expressions#99
kaidesu merged 3 commits into1.0from
ternary

Conversation

@kaidesu
Copy link
Copy Markdown
Member

@kaidesu kaidesu commented Jan 25, 2022

closes #95

value = 1 + 2

result = value == 3 ? "three" : "unknown"

print(result)

@kaidesu kaidesu merged commit 2daf7e0 into 1.0 Jan 25, 2022
@kaidesu kaidesu deleted the ternary branch January 25, 2022 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ternary operator ? :

1 participant