To 727 heretic, you are stating the obvious = no help. The question(s) are how? To n4gix and rpmc, thanks!
1) As far as the SDK's (if in FS9), where is that information? I have: ABL_SDK, AIRCRAFT_CONTAINER_SDK, BGLCOMP_SDK, Cabdir_SFK, FSEdit_SDK, Panels_SDK, and TERRAIN_SDK, and I cannot find anything that was described by rpmc (in part: ... here's the SDK explanation ....).
2) per n4gix:
A B True ? evaluates to A
A B True ! ? evaluates to B
Now that is extremely helpful. Too bad the "
A B True ! ? evaluates to B" wasn't in the original Creating XML Gauges. Because at the time, "evaluates to A" by itself didn't make sense to me. The verb "evaluate" to me, means "to examine or scrutinize or to look into". If the word "selects A" had been used, maybe I would have understood. Also, what happens when:
A B False ? ... ? Unless this works as:
A B True ! ? evaluates to B.
3) And now to my original issue. I realize I could use (or/||) logic but I was, and would still want to understand the ?/comparison instruction. As I stated in #24: ... I've notice that this comparison works as long as the values of -2.2, -1.3, etc. or whatever, are
increasing/decreasing sequentially. Using n4gix's and gr8guitar's examples of adding the 1's and 0's make sense. However, when I tried to use the ? comparison for variables that are
boolean, i.e.: [ (A:GPS DRIVES NAV1,bool) (A:CIRCUIT AVIONICS ON,bool) (A:NAV HAS LOCALIZER:1,bool) ], the expected result did not work. ...
To make things more simple and easier to test, I came up with the following:
Code:
<Element><Select><Value>
0 (>L:Toggle1,bool)
0 (>L:Toggle2,bool)
0 (>L:Toggle3,bool)
</Value></Select>
</Element>
<Element>
<Position X="43" Y="27"/>
<Select>
<Value> 3 2 1 0 (A:GPS DRIVES NAV1,bool) 1 == ? (A:CIRCUIT AVIONICS ON,bool) 1 == ? (A:NAV1 HAS LOCALIZER,bool) 1 == ? </Value>
<Case Value="0">
<Image Name="HSI_Flag_Nav.bmp" ImageSizes="37,19"/>
</Case>
</Select>
</Element>
Also tried:
(A:NAV HAS LOCALIZER:1,bool). This did
not work as expected. However:
<Value> 3 2 1 0 (L:Toggle1,bool) 1 == ? (L:Toggle2,bool) 1 == ? (L:Toggle3,bool) 1 == ? </Value>
This worked as expected - confused. Why did the actual FS variables not work and the Local variables did? So this is when I got interested in how the ? comparison actually works.