Godot Forum
Lua-like variable assignment depending on condition
Help
Programming
godot-4
,
gdscript
BadAlchemy
March 13, 2024, 12:45pm
2
You’re looking for the
Ternary Operator
var x = val1 if condition else val2
1 Like
show post in topic