2018-04-19, 20:47
Is there one?
String.isEqual(ListItem.Label,$INFO[Window(Home).Property(favourite.1.name)]) | String.isEqual(ListItem.Label,$INFO[Window(Home).Property(favourite.2.name)]) | ... up to 20 ...
or with PATH
(this method is more complicated because you have to compare different path infolabels based on content e.g. ListItem.Path, ListItem.FolderPath)
String.Contains(ListItem.Path,$INFO[Window(Home).Property(favourite.1.path)]) | String.Contains(ListItem.FolderPath,$INFO[Window(Home).Property(favourite.1.path)]) | ...
<variable name="Is_Favourite">
<value condition="String.Contains(ListItem.Path,$INFO[Window(Home).Property(favourite.1.path)])">Selected item is a favourite #1</value>
<value condition="String.Contains(ListItem.FolderPath,$INFO[Window(Home).Property(favourite.1.path)])">Selected item is a favourite #1</value>
... up to 20 ...
<value>Not a favourite</value>
</variable>
<control type="list" id="8801">
<itemlayout />
<focusedlayout />
<content>favourites://</content>
</control>
String.IsEqual(ListItem.Label,Container(8801).ListItemAbsolute(0).Label) | String.IsEqual(ListItem.Label,Container(8801).ListItemAbsolute(1).Label) | String.IsEqual(ListItem.Label,Container(8801).ListItemAbsolute(2).Label)