noob xml question


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:
Last edited: