- Messages
- 52
- Country

I hope one of you folks who are skilled at XML coding can help fill a gap in my knowledge. I'm trying to create an XML gauge that will read a few conditions and turn on a smoke effect (representing ground dust). All the AND conditions work fine but I am struggling with the OR conditions and I'm sure in my ignorance I'm approaching it wrong.
In essence, I want the dust effect NOT to be triggered on any of the seven specific surface types. The way I currently have it, the effect is "on" no matter what the surface type. I'd be really grateful if someone could help me with the proper structure for the OR code?
In essence, I want the dust effect NOT to be triggered on any of the seven specific surface types. The way I currently have it, the effect is "on" no matter what the surface type. I'd be really grateful if someone could help me with the proper structure for the OR code?
Code:
<Element>
<Select>
<Value>
(A:SURFACE TYPE,enum) 21 !=;
(A:SURFACE TYPE,enum) 12 !=; ||
(A:SURFACE TYPE,enum) 7 !=; ||
(A:SURFACE TYPE,enum) 6 !=; ||
(A:SURFACE TYPE,enum) 5 !=; ||
(A:SURFACE TYPE,enum) 3 !=; ||
(A:SURFACE TYPE,enum) 1 !=; ||
(A:TURB ENG1 N1,percent) 20 > &&
(A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 49 > &&
(A:SIM ON GROUND,bool) 1; &&
(A:GROUND VELOCITY,knots) 50 < &&
(A:AMBIENT PRECIP STATE,mask) 4 < &&
if{ 3 (>K:SMOKE_ON) } els{ 3 (>K:SMOKE_OFF) }
</Value>
</Select>
</Element>


