Specifically, I want to make text that says whether Landing Gear is down or not. The text I used was Gear: { LandingGear = 1 ? “Down” : “Up” }. The Intent is that when the gear is down it will say Gear: Down and when the gear is up, it will say Gear: Up. The code works if I replace down and up with one and zero, but it does not work with strings. Is it possible to output a string?
P.S. I also can’t get the ammo(name)
function to work in text parts, even though I put the weapon name in quotation marks
@Akashenik Thanks!
@Aano78
New info:
I copied your text directly, the issue seems to be your quotation marks. The compiler does not recognise the quotation marks you're using, at least the ones you typed here. Try changing them to this by copying: " . And see if it fixes it.
Old Comment:
Gear: {LandingGear = 1 ? "Up" : "Down" Works just fine for me. So does the {ammo(name)} function.
String outputs should be no problem.
My guess is that it could be a compiling problem. That would be a device or software specific problem, so I can't help much with that.
The default (new) "Wasp" also has code you can directly rip off too. See if the code works on that.
If it's not a compiling problem or some technical issue, then it just has to be debugged (check syntax first I guess).