1
0
Fork 0
forked from len0rd/rockbox

skin engine: New logical 'and' and 'or' tags to evaluate multiple tags in a single conditional.

Use these tags to stop having multiple conditionals.. e.g:
OLD: %?C<%?Ia<something>>
NEW: %?and(%C, %Ia)<something>

Change-Id: Ia3bbe4611cf808e87dcd1b1147181461fa08294a
This commit is contained in:
Jonathan Gordon 2012-02-02 22:26:16 +11:00
parent f1eedb80a2
commit 40ecdf6811
6 changed files with 83 additions and 27 deletions

View file

@ -565,6 +565,10 @@ Example: \config{\%ax\%V(\dots)}
\config{operand}: either a second tag, a number, or text.\newline
\config{[option count]}: optional parameter used to select which parameter
of a tag to use when the tag has multiple options, e.g. \%?pv<a|b|c|d>\\
\config{\%and(tag1, tag2, ..., tagN)}\newline
& Logical ``and'' operator. Will be evaluate to true if all the tag parameters are true.\\
\config{\%or(tag1, tag2, ..., tagN)}\newline
& Logical ``or'' operator. Will be evaluate to true if any of the tag parameters are true.\\
\end{tagmap}
Examples of the \%if tag:\\