I again need a little help on using PSS:
I want to indicate $info(encoding) in a custom display:
If $info(encoding) is lossless, then it should display a light font, otherwise a dark one.
If it is lossy or hybrid, it should do the same.
I tried:
$font(Arial Black,5,)
$drawtext(LOSSLESS,$sub(%_width%,289),$sub(%_height%,437),60,12,$ifequal($info(encoding),lossless,114-181-229,31-50-63),hcenter vcenter)
$drawtext(LOSSY,$sub(%_width%,233),$sub(%_height%,437),60,12,$ifequal($info(encoding),$or(lossy,hybrid),114-181-229,31-50-63),hcenter vcenter)
But it always shows the light fonts.
Any ideas?
Btw. I tried with trackinfo_mod too, but it also only shows the light font. Maybe $ifequal() doesn't work for my needs. Is there another way?
If I try $ifgreater($info(bitrate),500,...) it works with lossless, but it is not really exactly...
so you should code this to make it work :
$if($stricmp($info(encoding),'lossless'),
$drawtext(LOSSLESS,$sub(%_width%,289),$sub(%_height%,437),60,12,114-181-229,hcenter vcenter)
,
$drawtext(LOSSY,$sub(%_width%,289),$sub(%_height%,437),60,12,031-050-063,hcenter vcenter)
)
$equal() work only with numeric values, not with char strings => $stricmp(text1,tex2) is better (return TRUE is equality)