
Originally Posted by
h3rk
Just keep us updated on what will end up being case-sensative and what will not please.
Nothing is case sensitive at all right now. Every tag name and attribute is converted to lowercase before parsing what it is. So no matter how you type it comes out all lower case. I removed the lower case conversion for the text so it wont do that for the textprimary, textsecondary, and textdisabled.

Originally Posted by
h3rk
Can you explain the following section of code from the beginning of your <all statements> section?
I'm not sure I'm getting it fully.
Code:
<if priority="medium" fire_on="logic">
<parameter1>
<variable do="set" name="is5greaterthan3">
<if>
<parameter1>
<number>5</number>
</parameter1>
<test check="greater than or equal to"></test>
<parameter2>
<number>3</number>
</parameter2>
</if>
</variable>
</parameter1>
<test check="NAND"></test>
<parameter2>
<boolean_operation type="NOT">
<parameter1>
<boolean_operation type="OR">
<parameter1>
<variable do="get">is5greaterthan3</variable>
</parameter1>
<parameter2>
<boolean>false</boolean>
</parameter2>
</boolean_operation>
</parameter1>
</boolean_operation>
</parameter2>
</if>
ok it is a big if statement. That entire thing needs to evaluate to true before what will be in the "then" area is evaluated. As of right now, nothing is in the "then" area.
So here is the equivalence:
Code:
<if>
<parameter1>
<number>5</number>
</parameter1>
<test check="greater than or equal to"></test>
<parameter2>
<number>3</number>
</parameter2>
</if>
if(5 >= 3) which obviously evaluates to true, but was done for testing not actual use! Then
Code:
<variable do="set" name="is5greaterthan3">
...
</variable>
Takes whatever inside of it and stores it as a variable with name of "is5greaterthan3". If the variable exists, it will override the current value. If the variable does not exist, it will create it. So in this case the variable "is5greaterthan3" is "true".
Code:
<boolean_operation type="OR">
<parameter1>
<variable do="get">is5greaterthan3</variable>
</parameter1>
<parameter2>
<boolean>false</boolean>
</parameter2>
</boolean_operation>
this makes the operation "true OR false" because is5greaterthan3 is true and then false is obviously "false". The type is OR which is a logic inclusive OR. Meaning if any input is true, then the output is true. So that expression with "true OR false" evaluates to true.
Then the big all encasing if says "true NAND true" and the outcome of that is of a medium priority. And there are 4 timers remember, the gui, input, output, and logic. So when the logic timer fires, this if statement is evaluated. If fire_on was "gui" for isntance, then when the logic timer ticks, it would ignore this entire if/then completely.
Bookmarks