blob: c835ce15e1f3f245b3de2e2cf30db85d6b558868 (
plain)
1
2
3
4
5
|
func test():
var amount = 50
# C-style ternary operator is invalid in GDScript.
# The valid syntax is `"yes" if amount < 60 else "no"`, like in Python.
var ternary = amount < 60 ? "yes" : "no"
|