Brian Dunning's FileMaker Custom Functions

XORbin ( bin0 ; bin1 ; "" )

Returns the XOR of two binary numbers.

  Average rating: 3.8 (50 votes) Log in to vote

Vaughan Bromfield   Vaughan Bromfield

Share on Facebook Share on Twitter

  Sample input:
XORbin( 11 ; 1001 ; "" )
  Sample output:
1010

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

A recursive custom function that returns the XOR of two binary numbers. The length of the binary number returned will be equal to the longer of the two binary inputs.

The function returns "?" without quotes if bin0 or bin1 are empty or contain non-binary characters.

 

Comments

Vaughan Bromfield   Vaughan Bromfield
Nov 11, 2010
Could the people that rate the function poorly please add a comment to let me know what the disappointment is. Thanks - Vaughan.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.