D.23.Conditional Tags; D.24.Subline Tags - Toshiba Gigabeat F Manual

Rockbox firmware manual
Table of Contents

Advertisement

Appendix D. Theme Tags
D.23. Conditional Tags
Tag
%?xx<true|false>
%?xx<alt1|alt2|
alt3|...|else>
%if(tag,
operator,
operand, [option
count])
%and(tag1, tag2,
..., tagN)
%or(tag1, tag2,
..., tagN)
Examples of the %if tag:
%?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.
%?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.
D.24. Subline Tags
Tag
%t(time)
;
Allows grouping of several items (sublines) onto one line, with the display cycling
round the defined sublines. See section
The Rockbox manual
Description
If / Else: Evaluate for true or false case
Enumerations: Evaluate for first / second / third / . . . / last
condition
Allows very simple comparisons with other tags.
tag: the tag to check against.
operator: the comparison to perform - possible options are
=, !=, >, >=, <, <=
operand: either a second tag, a number, or text.
[option count]: optional parameter used to select which pa-
rameter of a tag to use when the tag has multiple options, e.g.
%?pv<a|b|c|d>
Logical "and" operator. Will be evaluate to true if all the tag
parameters are true.
Logical "or" operator. Will be evaluate to true if any of the
tag parameters are true.
Description
Set the subline display cycle time (%t(5) or %t(3.4) formats)
Split items on a line into separate sublines
12.2.4
(version 3.14)
(page 196) for details.
Toshiba Gigabeat F and X Series
224

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gigabeat x

Table of Contents