- Messages
- 180
- Country

[XML] Conditional string problem
Hi all
I'm still struggling with my altimeter gauge.
My Altimeter gives me the thousands of feet in 2 digits. But when climbing and the altimeter says 18996 for instance I want to let the first 2 digits jump to 19.
The gauge itself has 2 text areas for the altitude, one with only 2 digits for the thousands of feet and another one which shows the hundreds. As soon as the hundreds reach 995 they automatically switch to 000, but I want the thousands of feet to jump too.
I tried several things but after a few tries where I got a value visible but not the correct one I now ended up with the thousands not showing up any more ...
can some one explain me what I'm doing wrong?
Hi all
I'm still struggling with my altimeter gauge.
My Altimeter gives me the thousands of feet in 2 digits. But when climbing and the altimeter says 18996 for instance I want to let the first 2 digits jump to 19.
The gauge itself has 2 text areas for the altitude, one with only 2 digits for the thousands of feet and another one which shows the hundreds. As soon as the hundreds reach 995 they automatically switch to 000, but I want the thousands of feet to jump too.
I tried several things but after a few tries where I got a value visible but not the correct one I now ended up with the thousands not showing up any more ...
Code:
<String>%((A:Indicated Altitude, feet)((A:Indicated Altitude, feet) 1000 / ) - 95 >= )
%{if}%((A:Indicated Altitude, feet) 1000 / near )%!2d!
%{else}%((A:Indicated Altitude, feet) 1000 / flr )%!2d!%{end}
</String>
can some one explain me what I'm doing wrong?
Last edited:


