1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

noob xml question

Discussion in 'Gauges' started by roddi, 30 Dec 2006.

  1. roddi

    roddi

    Joined:
    30 Dec 2006
    Messages:
    2
    Country:
    germany
    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:
    Last edited: 30 Dec 2006
  2. roddi

    roddi

    Joined:
    30 Dec 2006
    Messages:
    2
    Country:
    germany
    ok, i did it. the simple things are still the best :rolleyes:

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

Share This Page