View Single Post
  #1  
Old 30 Dec 2006, 10:19
roddi roddi is offline
  germany
Join Date: Dec 2006
Posts: 2
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>

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?

Last edited by roddi; 30 Dec 2006 at 10:51.
Reply With Quote