• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

What am I doing wrong?

ajweber

Banned
Messages
64
Hey folks,

I ran into a coding problem that I'm not sure what it is that I'm doing wrong. I've ran it through the infix tool and I still get the same results. This is code for the modeldef.xml. Everything works except the E: var is being ignored for some reason. I cut out var b, c, and d one at a time but still no joy. I used the same E: var for another part and works fine there, it's just this one that's giving me the problem. Any idea?

<PartInfo>
<Name>xxxxx</Name>
<AnimLength>100</AnimLength>
<Visibility>
<Parameter>
<Code>
(E:var a,enum) 1 ==
(A:var b,bool) &amp;&amp;
(A:var c:0, percent) 1 &gt;
(A:var d, volts) 22 &gt; &amp;&amp;
if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>>
 
You left out the conjunction conditional after (A:var c:0, percent) 1 &gt; and

...and please use the # icon to wrap your script/code in the
Code:
 box when posting here in the forum as it makes it so much easier to read! :D
[CODE]
<PartInfo>
  <Name>xxxxx</Name>
  <AnimLength>100</AnimLength>
  <Visibility>
    <Parameter>
      <Code>
        (E:var a,enum) 1 ==
        (A:var b,bool) and
        (A:var c:0, percent) 1 &gt; and
        (A:var d, volts) 22 &gt; and
        if{ 1 } els{ 0 }
      </Code>
    </Parameter>
  </Visibility>
</PartInfo>>
 
No problem. As you've no doubt noticed, I much prefer using and rather than the ackward &amp;&amp; for several reasons:
  1. less typing!
  2. less chance of errors
 
Back
Top