2016-02-12, 23:44
(2016-02-10, 22:09)Angelinas Wrote:(2016-02-10, 21:53)Hustler1337 Wrote: But that doesn't seem to work. I'm guessing I've made a mistake somewhere in that line and would appreciate if someone can tell me where I've gone wrong.this will work,visible condition..
Code:<item>
<label>RT Consensus</label><!-- RT-->
<label2>$INFO[Window(Home).Property(SkinHelper.RottenTomatoesConsensus)]</label2>
<onclick>noop</onclick>
<visible>!StringCompare(Window(Home).Property(SkinHelper.RottenTomatoesConsensus), N/A)</visible>
</item>
Thanks Angelinas, that worked perfectly. Now, I have another question: Is it possible to use StringCompare (or another bool condition) to find out whether the returned value is greater, less than or equal to another value?
So in the context of Rotten Tomatoes Rating, I'd like to set a visibility condition by finding out whether the rating is greater than "60". How can I achieve this?
I thought I'd try:
PHP Code:
<visible>StringCompare(Window(Home).Property(SkinHelper.RottenTomatoesRating), >60)</visible>
Would appreciate any help. Thanks
EDIT: Didn't notice IntegerGreaterThan bool in the wiki. Ignore the above.