Help with Skin Expression

Discussion in 'MediaPortal 1 Skins' started by pünktchen, November 11, 2014.

  1. pünktchen

    pünktchen Portal Pro

    Joined:
    October 26, 2010
    Messages:
    537
    Likes Received:
    147
    Ratings:
    +200 / 0
    Home Country:
    Germany Germany
    Hey skin-masters, i some help with nested expression!
    I would like to define something like this:
    Code (XML):
    1. <define>#NewProperty:#(iif(eq(#Property_1,Value), #Property_2, 'error'))</define>
    But in a label control i get the full IF-statement. Where is my error?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Spragleknas
    • Team MediaPortal
    • Administrator

    Spragleknas Administrator

    Joined:
    December 21, 2005
    Messages:
    9,472
    Likes Received:
    1,385
    Gender:
    Male
    Occupation:
    Occupied
    Location:
    Located
    Ratings:
    +1,892 / 12
    Home Country:
    Norway Norway
    Show System Specs
  4. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    Can you add a bit of context to it, what are your actual properties/values ?
     
  5. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,232
    Likes Received:
    4,976
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,385 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Here a code snippet as used in the BasicHome Editor of PureVisionHD 1080 to define a property of a plugin, and if that plugin is not activated/installed, it shows that the plugin is not available.

    Code (Text):
    1. <!-- Now Playing -->
    2.   <define property="true" evaluateNow="true">#9.MUSIC.name:#(L(4540))</define>
    3.   <define property="true" evaluateNow="true">#9.MUSIC.plugin:Music</define>
    4.   <define property="true" evaluateNow="true">#9.MUSIC.hyperlink:510</define>
    5.   <define property="true" evaluateNow="true">#9.MUSIC.parameter:</define>
    6.   <define property="true" evaluateNow="true">#9.MUSIC.hover:hover_my music.png</define>
    7.   <define property="true" evaluateNow="true">#9.MUSIC.active:#(iif(and(or(eq(#9.MUSIC.plugin,''),plugin.isenabled(#9.MUSIC.plugin)),neq(#9.MUSIC.name,#PLUGOPTERROR)),' ',''))</define>
    8.   <define property="true" evaluateNow="true">#9.MUSIC:#(#.MUSIC.name) | #(string.format('{0}{1}',#9.MUSIC.name,iif(eq(#9.MUSIC.active,' '),'',#PLUGERROR)))</define>
     
  6. pünktchen

    pünktchen Portal Pro

    Joined:
    October 26, 2010
    Messages:
    537
    Likes Received:
    147
    Ratings:
    +200 / 0
    Home Country:
    Germany Germany
    Thanks to both of you! I've found it out myself: because the Value is a string it has to be 'Value'!
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!