IntegerGreaterThan - how's it used?
#1
I'm trying to use these two conditions

Code:
<visible>!stringcompare(IntegerGreaterThan(Container(50).NumItems,8))</visible>

and

Code:
<visible>stringcompare(IntegerGreaterThan(Container(50).NumItems,8))</visible>

but it always uses the first one no matter how many items there are.

Is this the correct way to use IntegerGreaterThan?
Reply
#2
Hitcher Wrote:I'm trying to use these two conditions

Code:
<visible>!stringcompare(IntegerGreaterThan(Container(50).NumItems,8))</visible>

and

Code:
<visible>stringcompare(IntegerGreaterThan(Container(50).NumItems,8))</visible>

but it always uses the first one no matter how many items there are.

Is this the correct way to use IntegerGreaterThan?

Shouldn´t

Code:
<visible>IntegerGreaterThan(Container(50).NumItems,8)</visible>

and

Code:
<visible>!IntegerGreaterThan(Container(50).NumItems,8)</visible>

be sufficient? You also didn´t specify a second parameter for stringcompare.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
How temmy it says isgreaterthan are only true or false.
You need no stringcompare.
Reply
#4
temmi2000 Wrote:Shouldn´t

Code:
<visible>IntegerGreaterThan(Container(50).NumItems,8)</visible>

and

Code:
<visible>!IntegerGreaterThan(Container(50).NumItems,8)</visible>

be sufficient? You also didn´t specify a second parameter for stringcompare.
Doesn't even load the view type.

EDIT: It should be comparing Container(50).NumItems and 8.
Reply
#5
Well I'm not the only one who couldn't get it working so I'll post it on the Trac tomorrow as it appears to be broken.
Reply
#6
the proper usage would be the ones that temmi wrote. However those do not work and there are some differences in the code that I had in my latest patch and the code that JM added to the svn. I really don't understand what those changes does. All I can say is that it worked for me with the code that I posted... at that time... with that svn-version.
I haven't had time to do any testing if my original patch would work with the current svn.
I'm not sure it will work with what you are trying, but I've tested the function with simple things and it doesn't work with those either.

Maybe someone else can shed some light onto this? the addition refers to the ticket #7007.
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#7
More info -

http://trac.xbmc.org/changeset/23198
Reply
#8
I think I found a problem...
else if (strTest.Left(18).Equals("integergreaterthan("))
should be
else if (strTest.Left(19).Equals("integergreaterthan("))
will try and report back...
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#9
yup that and two other 18's had to be changed, posted a ticket on trac with a fix
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#10
Cheers.

Just got to wait before I can test it.
Reply
#11
fixed in http://trac.xbmc.org/changeset/24318!
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#12
Here's a build if you want to test it: Build
  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
Reply
#13
watzen Wrote:Here's a build if you want to test it: Build

Thanks for that. Big Grin
Reply
#14
Tried adding both conditions to two view types and neither will show up.
Reply
#15
I suspect it's because the visibility condition is evaluated before items are passed in.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
IntegerGreaterThan - how's it used?0