Exclusive OR Function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce A. Julseth

    Exclusive OR Function

    Does an Exclusive OR Function come with Javescript? I couldn't find one but
    I'm hoping I missed it.

    Thanks...

    Bruce


  • Evertjan.

    #2
    Re: Exclusive OR Function

    Bruce A. Julseth wrote on 23 apr 2007 in comp.lang.javas cript:
    Does an Exclusive OR Function come with Javescript? I couldn't find
    one but I'm hoping I missed it.
    Bitwise XOR Operator (^)

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Bruce A. Julseth

      #3
      Re: Exclusive OR Function


      "Evertjan." <exjxw.hannivoo rt@interxnl.net wrote in message
      news:Xns991BA1E 08ED6Ceejj99@19 4.109.133.242.. .
      Bruce A. Julseth wrote on 23 apr 2007 in comp.lang.javas cript:
      >
      >Does an Exclusive OR Function come with Javescript? I couldn't find
      >one but I'm hoping I missed it.
      >
      Bitwise XOR Operator (^)
      >
      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)
      Thank you...

      Bruce


      Comment

      • Dr J R Stockton

        #4
        Re: Exclusive OR Function

        In comp.lang.javas cript message <Xns991BA1E08ED 6Ceejj99@194.10 9.133.242>
        , Mon, 23 Apr 2007 13:54:48, Evertjan. <exjxw.hannivoo rt@interxnl.net >
        posted:
        >Bruce A. Julseth wrote on 23 apr 2007 in comp.lang.javas cript:
        >
        >Does an Exclusive OR Function come with Javescript? I couldn't find
        >one but I'm hoping I missed it.
        >
        >Bitwise XOR Operator (^)

        Or, for operands that are Boolean (and ! will force Boolean), == and !=
        can be used. One is XOR and the other isn't. One can also use and <,
        one of which is the Implies operator. And >= & <= should also work.

        <URL:http://www.merlyn.demo n.co.uk/js-logic.htm>

        --
        (c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 IE 6
        news:comp.lang. javascript FAQ <URL:http://www.jibbering.c om/faq/index.html>.
        <URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
        <URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.

        Comment

        Working...