- Messages
- 19
[SOLVED][FSX] XML Problem with if condition
Hi all,
I want to make a light gauge, that goes on if the Kohlsman setting not equals the Sea level setting.
The problem is that I can't get the if condition working.
Here is my partial code:
Can someone please help with the IF statement?
Thanks in advance,
Regards,
Jacob.
Hi all,
I want to make a light gauge, that goes on if the Kohlsman setting not equals the Sea level setting.
The problem is that I can't get the if condition working.
Here is my partial code:
Code:
<SimGauge.Element id="Element">
<FloatPosition>100.000,40.000</FloatPosition>
<Image id="dotbg.bmp" Name="dotbg.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
<Luminous>True</Luminous>
</Image>
<Element id="Element">
<FloatPosition>0.000,0.000</FloatPosition>
<Visibility>(A:SEA LEVEL PRESSURE, inHg) == (A:KOHLSMAN SETTING HG, inHg) ==
if{ 0 }
els{ 1 }
</Visibility>
<Image id="reddot.bmp" Name="reddot.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
<Luminous>True</Luminous>
</Image>
</Element>
</SimGauge.Element>
Can someone please help with the IF statement?
Thanks in advance,
Regards,
Jacob.
Last edited:


