The proper way to do this is the answer given at:
@Billy_Yank is using $in
to check if the value you are looking for is included in the list. Even cleaner would be using $inmulti
:
$if($and($inmulti(%releasetype%,compilation),$not($in(%album%,[Compilation]))),$set(album,%album% [Compilation]))
$if($and($inmulti(%releasetype%,live),$not($in(%album%,[Live]))),$set(album,%album% [Live]))
It inverses a condition. So the following prints “[SINGLE]” if %releasetype%
does contain single:
$if($inmulti(%releasetype%,single),[SINGLE])
And this prints “[NOT SINGLE]” if %releasetype%
does not contain single:
$if($not($inmulti(%releasetype%),single),[NOT SINGLE])