FM.IsMainThread
---------------

Checks if current thread is main thread.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.IsMainThread" ) ### Parameters

none

### Result

Returns number or error.

### Description

Checks if current thread is main thread.  
  
### See also

- [FM.MainThreadID](FMMainThreadID.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.1pr3](https://www.mbsplugins.de/archive/2015-03-30/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 26th March 2015 , last changed 26th March 2015

  
[FM.InsertSetUpdateProgressDialog](FMInsertSetUpdateProgressDialog.md) - [FM.LayoutIDForLayoutName](FMLayoutIDForLayoutName.md)

[HTML Version](FMIsMainThread.shtml)