INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: File Info  (Read 250 times)

Purecut

  • World Citizen
  • ***
  • Posts: 106
File Info
« on: July 15, 2023, 06:37:53 am »

Hi everybody,

I have a problem showing a icon in the info panel if a movie contains "Dolby Vision".
Therefore I have a field "Dolby Vision" that will be filled like this:

Code: [Select]
ListContains([HDR Format],DolbyVision)
This will work. If the HDR Fomrat field contains "DolbyVision" the field Dolby Vision shows "1" or "0".

When I use this information in the Tooltip field like this:
Code: [Select]
If(isEqual([Dolby Vision],1,8),<img src="tooltip:\Video\dolby-vision" height="25">,)
Nothing will be displayed.
What am I doing wrong?




Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1978
Re: File Info
« Reply #1 on: July 15, 2023, 07:43:30 am »

Try removing \ before video. I think it is not needed if you use tooltip:
Code: [Select]
If(isEqual([Dolby Vision],1,8),<img src="tooltip:Video\dolby-vision" height="25">,)
Using isEqual is perfectly fine but if you like and as [Dolby Vision] is empty vs 1 field you can also just check against raw value [Dolby Vision,0] meaning if there is a value in [Dolby Vision] then If return true i.e 1

Code: [Select]
If([Dolby Vision,0],<img src="tooltip:Video\dolby-vision" height="25">,)
or user isEmpty negative check
Code: [Select]
If(IsEmpty([Dolby Vision]),,<img src="tooltip:Video\dolby-vision" height="25">)
Logged

Purecut

  • World Citizen
  • ***
  • Posts: 106
Re: File Info
« Reply #2 on: July 15, 2023, 09:53:12 am »

Thanks  -  working :-)
Logged
Pages: [1]   Go Up