SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    creating an XOR mask

    how do i mask a bit string with XOR in asp?
    Free Science Homework Help
    http://www.physicsforums.com

  2. #2
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't exactly get what you mean by "mask", tho that might just be me being stupid

    You can use XOR like so:
    [vbs]
    variable = expression1 XOR expression2
    [/vbs]

    For example:
    [vbs]
    test1 = "as"
    test2 = 1
    result = isNumeric(test1) XOR isNumeric(test2)
    response.write(result)
    [/vbs]
    will return true because the first conditib is true and the second is false.

    And XOR switch works with the logic that one condition must be false and the other must be true to return a true value

    And Deth, before you think I was insulting you bu explaining what an XOR switch does, don't be, I was explaining it for everyone else.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •