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 - Show more from this author

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: