Skip to content
Evil Engine
home
how
devlogs
docs
contact
Theme
Light
Evil
Dark
source code
Evil Engine
/
Engine
/
modules
/
gdscript
/
tests
/
scripts
/
parser
/
errors
/
invalid_ternary_operator.gd
0.2.0-dev
Download ZIP
5 lines ·197 B
Raw
1
func
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"