FSDeveloper Community

FSDeveloper Community (http://www.fsdeveloper.com/forum/index.php)
-   Gauges (http://www.fsdeveloper.com/forum/forumdisplay.php?f=64)
-   -   noob xml question (http://www.fsdeveloper.com/forum/showthread.php?t=3715)

roddi 30 Dec 2006 10:19

noob xml question
 
hi,

i want do indicate if a door is open or not. The script should return bool.
in a pannel xml file i have found this working code to check the main exit:

<Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 == if{ (A:EXIT OPEN, bool) } els{ 0 }</Script>

:confused: i am a little confused over that. the "EXIT OPEN" should be a percent value.

however, if i try this with an other exit like this
<Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 == if{ (A:EXIT OPEN:1, bool) } els{ 0 }</Script>
the script fails. Any ideas? :confused:

roddi 30 Dec 2006 11:23

ok, i did it. the simple things are still the best :rolleyes:

(A:EXIT OPEN:1, percent) "100.0" <


All times are GMT -4. The time now is 20:33.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.