2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-conditional:
|
|
|
|
|
|
|
|
The Conditional plugin
|
|
|
|
======================
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-gt:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
gt <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is greater than <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-nlt:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
nlt <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is less than <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-nne:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
nne <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if they are not equal.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-ge:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
ge <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is greater than or equal to <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-cor:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
cor <cond1> [<cond2> ... <condN>]
|
|
|
|
|
|
|
|
Returns true if any one of conditions supplied evaluates to true.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-nle:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
nle <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is less than or equal to <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-ceq:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
ceq <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if they are equal.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-nge:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
nge <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is greater than or equal to <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-cxor:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
cxor <cond1> [<cond2> ... <condN>]
|
|
|
|
|
|
|
|
Returns true if only one of conditions supplied evaluates to true.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-le:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
le <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is less than or equal to <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-cif:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
cif <condition> <ifcommand> <elsecommand>
|
|
|
|
|
|
|
|
Runs <ifcommand> if <condition> evaluates to true, runs <elsecommand>
|
|
|
|
if it evaluates to false.
|
|
|
|
|
|
|
|
Use other logical operators defined in this plugin and command nesting
|
|
|
|
to your advantage here.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-ne:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
ne <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if they are not equal.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-cand:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
cand <cond1> [<cond2> ... <condN>]
|
|
|
|
|
|
|
|
Returns true if all conditions supplied evaluate to true.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-nceq:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
nceq <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if they are equal.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-ngt:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
ngt <item1> <item2>
|
|
|
|
|
|
|
|
Does a numeric comparison on <item1> and <item2>.
|
|
|
|
Returns true if they <item1> is greater than <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-lt:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
lt <item1> <item2>
|
|
|
|
|
|
|
|
Does a string comparison on <item1> and <item2>.
|
|
|
|
Returns true if <item1> is less than <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-match:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
match <item1> <item2>
|
|
|
|
|
|
|
|
Determines if <item1> is a substring of <item2>.
|
|
|
|
Returns true if <item1> is contained in <item2>.
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|