<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.variant-xor" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>variant_xor</refname> <refpurpose>Performs a logical exclusion on two variants</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>variant_xor</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Performs a logical exclusion. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>left</parameter></term> <listitem> <para> The left operand. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>right</parameter></term> <listitem> <para> The right operand. </para> </listitem> </varlistentry> </variablelist> &com.variant-arith; </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> <table> <title>Variant XOR Rules</title> <tgroup cols="3"> <thead> <row> <entry>If <parameter>left</parameter> is</entry> <entry>If <parameter>right</parameter> is</entry> <entry>then the result is</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&false;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>variant_or</function></member> <member><function>variant_and</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->