I have created a gauge in ACE xml with some 30 elements all of which are working but 1.
the element in question is a warning light for the altitude bug the code for which was in FS9 schema that I have tried unsuccessfully to convert.
can anybody point out the error, it always shows red.bmp whether the two variables are equal or not, even if I ensure they are equal by presing the "B" key
snippet below:-
regards
the element in question is a warning light for the altitude bug the code for which was in FS9 schema that I have tried unsuccessfully to convert.
can anybody point out the error, it always shows red.bmp whether the two variables are equal or not, even if I ensure they are equal by presing the "B" key
snippet below:-
XML:
<Macro Name="Round2">d flr s0 - 100 * near 100 / l0 +</Macro>
<Element id="Element">
<FloatPosition>600.000,14.000</FloatPosition>
<Image id="green.bmp" Name="green.bmp">
<Transparent>True</Transparent>
</Image>
</Element>
<Element id="Element">
<FloatPosition>600.000,14.000</FloatPosition>
<Visibility>(A:Radio height, feet) 18000 <</Visibility>
<Select id="Select">
<Expression id="Expression">
%(A:SEA LEVEL PRESSURE, inHG) @Round2 (A:KOHLSMAN SETTING HG, inHG) @Round2 == if{ 1 } els{ 0 }
</Expression>
<Case id="Case1">
<ExpressionResult>1</ExpressionResult>
<Image id="green.bmp" Name="green.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
<Luminous>True</Luminous>
</Image>
</Case>
<Case id="Case0">
<ExpressionResult>0</ExpressionResult>
<Image id="red.bmp" Name="red.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>