Kodi Community Forum

Full Version: Using multiple id attributes in one condition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For example
Code:
Control.HasFocus([1 | 2])

If this could be done, one could greatly decrease the size of certain lines of code. For example I cut this line of code out of a view type I am working on
Code:
<animation effect="zoom" time="0" end="-20,10,140,208" condition="Container(52).Row(0) + Container(52).Column(1) | Container(52).Row(0) + Container(52).Column(2) | Container(52).Row(0) + Container(52).Column(3) | Container(52).Row(0) + Container(52).Column(4) | Container(52).Row(0) + Container(52).Column(5)">Conditional</animation>

If what I am proposing is possible I could cut it down to this
Code:
<animation effect="zoom" time="0" end="-20,10,140,208" condition="Container(52).Row(0) + Container(52).Column([1 | 2 | 3 | 4 | 5])
could this be extended to include anything that appears inside brackets in a condition so for example,

"container.content(seasons | episodes) "

instead of

"container.content(seasons) | container.content(episodes)"