From 40ecdf6811d9a717ef67ff1833a67dbb521f91be Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 2 Feb 2012 22:26:16 +1100 Subject: 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> NEW: %?and(%C, %Ia) Change-Id: Ia3bbe4611cf808e87dcd1b1147181461fa08294a --- manual/appendix/wps_tags.tex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'manual') 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\\ +\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:\\ -- cgit v1.2.3