|| ( A ; B )
Perl-style or to select values. This is particularly useful for falling back to defaults values.
Average rating: 5.0 (1 vote) Log in to vote
belg4mit - Show more from this author |
||( 0; 2)
||( 1; 2)
2
1
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Perl-style or to select values. Rather than FileMaker's native C-style "or", which casts values to binary for evaluation, || treats non-zero, non-empty values as truth and returns these true values as the result of the expression. This is particularly useful for falling back to defaults values.
Comments
belg4mit Mar 17, 2023 |
||
A potentially more compact alternative is here https://www.briandunning.com/cf/1126 although it is recursive and results in indirection | ||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.