Brian Dunning's FileMaker Custom Functions

WorkFromHome

A function to determine whether to stay at home or work at the office.

  Average rating: 1.0 (2 votes) Log in to vote

Vaughan Bromfield   Vaughan Bromfield - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
WorkFromHome( 3 ; 1 ; 0 )
  Sample output:
1

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

// WorkFromHome( previousDayOfRain ; isRainingNow ; shitsGiven )

// previousDayOfRain = an integer greater than zero of the number of previous days that have had rain

// isRainingNow = whether it is currently precipitating

// shitsGiven = a subjective measure of enthusiasm; an integer greater than zero indicates a desire to go to the office

Case(

not isRainingNow ; getAsBoolean( shitsGiven ) ;

GetAsBoolean( shitsGiven - previousDayOfRain )

)

 

Comments

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: