AIMP Forum

AIMP for Windows => Skin Editor, Skin Engine => Вопросы / Questions => Topic started by: mortalis on August 24, 2020, 08:25:33

Title: Conditional Labels in a skin for Android
Post by: mortalis on August 24, 2020, 08:25:33
Hi.

Is it possible to set a conditional text in a SkinnedLabel element in the skin editor for Android?
For example, the skin has a label with Text set to '%Artist', but when the artist tag of an audio file is empty, the text is empty.
I'd like to show 'Unknown' in this case.

Thanks.
Title: Re: Conditional Labels in a skin for Android
Post by: Artem on August 24, 2020, 09:52:20
Yes, use the %IF macro:

Code: [Select]
%IF(%Artist,%Artist,Unknown)
Title: Re: Conditional Labels in a skin for Android
Post by: mortalis on August 24, 2020, 10:23:32
Thanks a lot.
Sorry, should've created the topic in the android section.