Help with Skin Expression (1 Viewer)

pünktchen

Portal Pro
October 26, 2010
537
201
Home Country
Germany Germany
Hey skin-masters, i some help with nested expression!
I would like to define something like this:
XML:
<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?
 

wizard123

Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Can you add a bit of context to it, what are your actual properties/values ?
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,367
    10,405
    Königstein (Taunus)
    Home Country
    Germany Germany
    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:
    <!-- Now Playing -->
      <define property="true" evaluateNow="true">#9.MUSIC.name:#(L(4540))</define>
      <define property="true" evaluateNow="true">#9.MUSIC.plugin:Music</define>
      <define property="true" evaluateNow="true">#9.MUSIC.hyperlink:510</define>
      <define property="true" evaluateNow="true">#9.MUSIC.parameter:</define>
      <define property="true" evaluateNow="true">#9.MUSIC.hover:hover_my music.png</define>
      <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>
      <define property="true" evaluateNow="true">#9.MUSIC:#(#.MUSIC.name) | #(string.format('{0}{1}',#9.MUSIC.name,iif(eq(#9.MUSIC.active,' '),'',#PLUGERROR)))</define>
     

    Users who are viewing this thread

    Top Bottom