![]() |
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: |
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.