forked from len0rd/rockbox
Manual: Add the %if tag to the manual. Closes bug FS#11555.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6912d3bbb
commit
779f1dbc7a
1 changed files with 20 additions and 0 deletions
|
@ -493,8 +493,28 @@ Example: \config{\%ax\%V(\dots)}
|
||||||
& If / Else: Evaluate for true or false case \\
|
& If / Else: Evaluate for true or false case \\
|
||||||
\config{\%?xx<alt1|alt2|\tabnlindent{}alt3|\dots|else>}
|
\config{\%?xx<alt1|alt2|\tabnlindent{}alt3|\dots|else>}
|
||||||
& Enumerations: Evaluate for first / second / third / \dots / last condition \\
|
& Enumerations: Evaluate for first / second / third / \dots / last condition \\
|
||||||
|
\config{\%if(tag, operator, operand, [option count])}
|
||||||
|
& Allows very simple comparisons with other tags.\newline
|
||||||
|
\config{tag}: the tag to check against.\newline
|
||||||
|
\config{operator}: the comparison to perform - possible options are =, !=,
|
||||||
|
>, >=, <, <=\newline
|
||||||
|
\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>\\
|
||||||
\end{tagmap}
|
\end{tagmap}
|
||||||
|
|
||||||
|
Examples of the \%if tag:\\
|
||||||
|
|
||||||
|
\config{\%?if(\%pv, >=, 0)<Clipping possible|Volume OK>} will display ``Clipping
|
||||||
|
possible'' if the volume is higher than or equal to 0 dB, ``Volume OK'' if it
|
||||||
|
is lower.\\
|
||||||
|
|
||||||
|
\config{\%?if(\%ia, =, \%Ia)<same artist>} -- this artist and the next artist
|
||||||
|
are the same.\\
|
||||||
|
|
||||||
|
\note{When performing a comparison against a string tag such as \%ia, only = and
|
||||||
|
!= work, and the comparison is not case sensitive.}
|
||||||
|
|
||||||
\section{Subline Tags}
|
\section{Subline Tags}
|
||||||
|
|
||||||
\begin{tagmap}
|
\begin{tagmap}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue