1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Ternary operator in GDScript (a if x else b)

Fixes #1961
This commit is contained in:
Bojidar Marinov
2016-08-25 21:18:35 +03:00
committed by Pedro J. Estébanez
parent c0743f898a
commit 6ad84850ab
3 changed files with 125 additions and 14 deletions

View File

@@ -244,6 +244,9 @@ public:
OP_BIT_AND,
OP_BIT_OR,
OP_BIT_XOR,
//ternary operators
OP_TERNARY_IF,
OP_TERNARY_ELSE,
};
Operator op;