Reference > Functions reference > Get functions > Get(Device)
 
Get(Device)
Purpose 
Returns a number representing the type of computer or mobile device running the FileMaker product.
Format 
Get(Device)
Parameters 
None
Data type returned 
number
Originated in 
FileMaker Pro 13.0
Description 
This function returns a number indicating the type of computer or mobile device currently running FileMaker Pro or FileMaker WebDirect, or the type of iOS device currently running FileMaker Go.
Returns:
0 for an unknown device
1 for a Mac
2 for a computer running Windows
3 for iPad
4 for iPhone or iPod touch
5 for Android
Examples 
Returns 2 if FileMaker Pro or FileMaker WebDirect is currently running on a computer with Windows.
Returns 3 if FileMaker Go or FileMaker WebDirect is currently running on iPad.
For an example script, see AVPlayer Play script step.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas