Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Comparing contents of fields; only displaying one if they’re identical (Read 2898 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Comparing contents of fields; only displaying one if they’re identical

My BBC podcasts have identical contents in their comment and UNSYNCED LYRICS fields. For these podcasts I want the Item details panel to display only the comment field.

But I have also other podcasts with different contents in their comment and UNSYNCED LYRICS fields. In this case I want the Item details panel to show both comment and UNSYNCED LYRICS field.

Can someone help me please to build the correct pattern? I have experimented with $strcmp and $ifequal and I failed.
This is HA. Not the Jerry Springer Show.

Comparing contents of fields; only displaying one if they’re identical

Reply #1

Does this example help?

Code: [Select]
$if($stricmp(%unsynced lyrics%,%comment%),%comment%,
[%comment%][$crlf()$crlf()%unsynced lyrics%])


 

Comparing contents of fields; only displaying one if they’re identical

Reply #2
Does this example help?

It does and you helped me again a lot, so thank you very much, trout!

Robertina.
This is HA. Not the Jerry Springer Show.