Skip to content
0.2.0-dev Download ZIP
5 lines ·197 B Raw
1func test():
2 var amount = 50
3 # C-style ternary operator is invalid in GDScript.
4 # The valid syntax is `"yes" if amount < 60 else "no"`, like in Python.
5 var ternary = amount < 60 ? "yes" : "no"