I think this is a bug on the engine side

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Xian

Its a picture of an error that godot3.1 has this weird bug when you use a variable in a ternary condition and that variable is returned and labeled as "unused" (yellow warning error) in the console

picture

It might be because it’s not used in a function. This is honestly the first time I’ve seen var, if and else on the same line.

Magso | 2019-07-21 15:26

Have you submitted an issue on github?

Eric Ellingson | 2019-07-21 17:59