Reply to thread

Player.HasVideo is a "function" that is valid only in the <visible> tag, like so:


<visible>Player.HasVideo</visible>


Some "functions" are valid only in expressions (see this page).

Some "functions" are valid only in the <visible> tag (see this page).

Some functions are valid in both places (those functions that are listed on both of the Wiki pages linked above).


Also note that function names in expressions are case sensitive, whereas function names in the <visible> tag are not. So String.Equals(...) is valid for the <visible> tag, but this must be coded as string.equals(...) in an expression.


Also, string constants in expressions must be quoted, so to compare a skin variable to the value true, the value must be enclosed in single quotes:


#(iif(eq(#HasSubtitles,'true'), ... , ... ) )


-- from CyberSimian in the UK


Top Bottom