Functions Reference

Table Of Contents
FILEMAKER FUNCTIONS REFERENCE 196
Originated in
FileMaker Pro 6.0 or earlier
Description
Use the Mod function to test whether a number is even or odd by specifying a divisor of 2. If the
result is zero, then the number is even; otherwise, it’s odd. The result has the same sign as
divisor.
Examples
Mod(13;4) returns 1.
Mod(7;5) returns 2.
Mod(7;-5) returns -3.
Mod(-7;5) returns 3.
Mod(-7;-5) returns -2.
Mod(Participants;TeamSize) returns 4 if Participants contains 40 and TeamSize contains 9.
If(Mod(Get(RecordNumber);2) = 0;“even”;“odd”) labels a record even or odd using the
Get(RecordNumber) function.
Related topics
Contents
Functions reference (alphabetical list)
Random
Purpose
Returns a number between zero and one, including zero, but not including one.
Format
Random
Parameters
None
Data type returned
number
Originated in
FileMaker Pro 6.0 or earlier
Mod number Div number;divisor()divisor=