diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-02 22:26:16 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-07 21:41:18 +1100 |
commit | 40ecdf6811d9a717ef67ff1833a67dbb521f91be (patch) | |
tree | ddde16bbb941fb70515a6127339b0a2f176e224f /manual | |
parent | f1eedb80a2efbf60cfc25182b72e3da07e0f1250 (diff) |
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
Diffstat (limited to 'manual')
-rw-r--r-- | manual/appendix/wps_tags.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index d882baadea..0096075695 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -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:\\ |