home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Skin Expressions: Localized or empty string in iif-expression
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bta489" data-source="post: 1284700" data-attributes="member: 138471"><p>For future reference, I'll solve my own problem... Only 5 years later <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>It seems the correct notation inside those functions is without the [ICODE]#()[/ICODE], so just [ICODE=xml]L(293)[/ICODE] should do the trick for just a string and no additional characters.</p><p>For additional characters use the [ICODE]string.format[/ICODE] function. So for the example above:</p><p>[CODE=xml]<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),string.format('| {0}',L(293)),''))</label>[/CODE]</p></blockquote><p></p>
[QUOTE="bta489, post: 1284700, member: 138471"] For future reference, I'll solve my own problem... Only 5 years later :) It seems the correct notation inside those functions is without the [ICODE]#()[/ICODE], so just [ICODE=xml]L(293)[/ICODE] should do the trick for just a string and no additional characters. For additional characters use the [ICODE]string.format[/ICODE] function. So for the example above: [CODE=xml]<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),string.format('| {0}',L(293)),''))</label>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Skin Expressions: Localized or empty string in iif-expression
Contact us
RSS
Top
Bottom