Profile image

Why wont my FT code work?

79 ZilithyneYT  2.3 years ago

So I'm working on a plane (AFTB-1, anything on my profile right now is far from finished) and I've made screens in the cockpit with labels, for things like target distance, fuel etc. And the latest thing I've tried to implement is a throttle gauge thingy. I've got it to work with Thr. {round(Throttle * 100)}% to display as

 `Thr. 0-100%`

But I want it to display as

`Thr. AFTB.`

when over 95%.
I've tried to use {round(Throttle * 100) <= 95 ? Thr. {round(Throttle * 100)}% : Thr. AFTB.}

but it doesn't work. Does anyone know what I'm doing wrong?

`

  • Log in to leave a comment
  • Profile image

    @ZeroWithSlashedO I see. Often I try to mash everything into one set of brackets, perhaps I should separate things more frequently.

    2.3 years ago
  • Profile image

    why so complicated? You could've just put {Throttle>0.95 ? "AFTB." : "Thr."}

    2.3 years ago