2014-01-20, 21:40
So this was working on earlier Windows Gotham builds but it has been broken for at least a month now.
ListItem.Votes is working (when used as a Label), but comparing against it doesn't.
I have even tried <value condition="SubString(ListItem.Votes,1)">FF00FF00</value> which should work with any item with a 1 in Votes, even that doesn't work. It is defaulting to FFFF0000, so "variable name" is working.
Again, this used to work with previous builds of Gotham, and it still doesn't work with the very newest nightly (for WIndows).
Is this a bug, or has something changed?
Code:
<variable name="value_ratingcolor">
<value condition="!SubString(ListItem.Votes,$COMMA)">FFFF0000</value>
<value condition="SubString(ListItem.Votes,1$COMMA,Left)">FFFF5555</value>
<value condition="SubString(ListItem.Votes,2$COMMA,Left)">FFFFFF00</value>
<value condition="SubString(ListItem.Votes,3$COMMA,Left)">FFFFFF00</value>
<value condition="SubString(ListItem.Votes,4$COMMA,Left)">FFFFFF00</value>
<value condition="SubString(ListItem.Votes,5$COMMA,Left)">FFFFFF00</value>
<value condition="SubString(ListItem.Votes,$COMMA)">FF00FF00</value>
</variable>
ListItem.Votes is working (when used as a Label), but comparing against it doesn't.
I have even tried <value condition="SubString(ListItem.Votes,1)">FF00FF00</value> which should work with any item with a 1 in Votes, even that doesn't work. It is defaulting to FFFF0000, so "variable name" is working.
Again, this used to work with previous builds of Gotham, and it still doesn't work with the very newest nightly (for WIndows).
Is this a bug, or has something changed?