Opened 10 years ago

Closed 10 years ago

#2630 closed Feature Request (Rejected)

_XOR() and _XNOR() - new function

Reported by: mlipok Owned by:
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


Please consider adding such a function:

to the UDF

; Author: AdamUL
Func _XOR($A, $B)
    Return ($A Or $B) And (Not ($A And $B))

Func _XNOR($A, $B)
    Return Not _XOR($A, $B)

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Mat

Or BitXOR($A ? 1 : 0, $B ? 1 : 0)

Generally if it can be done in one line then there really isn't a need to add it to the standard UDFs.

comment:2 Changed 10 years ago by anonymous

I would add it as a keyword instead (like And, Or and Not):

$A = $B XOR $C
$D = $E XNOR $F

comment:3 Changed 10 years ago by mlipok

it would be good

comment:4 Changed 10 years ago by guinness

  • Resolution set to Rejected
  • Status changed from new to closed

What Mat said.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.