INTERACT FORUM

Please login or register.

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

Author Topic: Function: ListContains  (Read 269 times)

Purecut

  • World Citizen
  • ***
  • Posts: 106
Function: ListContains
« on: January 23, 2024, 06:59:20 am »

Hi,

I have a problem changing the value for the Dolby Vision field.
If a movie contains a DV Layer, the field shows "1" oderwise "0".

I want to exchange the 1 and 0 -> ✔, x

ListContains([HDR Format],DolbyVision)
if(isequal([Dolby Vidion], 1, 1), ✔, x)

When I use this I will get a 1 or 0 and also a x in any case.
What am I doing here wrong.

Thanks for any help.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Function: ListContains
« Reply #1 on: January 23, 2024, 07:21:56 am »

Code: [Select]
If(ListContains([HDR Format],DolbyVision), ✔, x)If DolbyVision phrase is found from HDR format return ✔, otherwise return x
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2413
Re: Function: ListContains
« Reply #2 on: January 23, 2024, 07:41:46 am »

Quote
if(isequal([Dolby Vidion], 1, 1), ✔, x)
"Vidion" ? :) That would do it.
Logged

Purecut

  • World Citizen
  • ***
  • Posts: 106
Re: Function: ListContains
« Reply #3 on: January 23, 2024, 04:28:03 pm »

Code: [Select]
If(ListContains([HDR Format],DolbyVision), ✔, x)If DolbyVision phrase is found from HDR format return ✔, otherwise return x

Many thanks, works and how simple.
Thanks
Logged
Pages: [1]   Go Up