FSEvents.HasNextEvent
---------------------

Checks if there is a pending event in the queue.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FSEvents](component_FSEvents.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "FSEvents.HasNextEvent"; FSEventsRef ) 

**MBS**( **"FSEvents.HasNextEvent";** /\* Checks if there is a pending event in the queue. \*/  
**$FSEventsRef**) /\* The reference number for this FSEvents object.e.g. $fstream \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FSEventsRef | The reference number for this FSEvents object. | $fstream |

### Result

Returns 0 or 1 or error.

### Description

Checks if there is a pending event in the queue.  
Returns 1 if there is an event in the queue or zero if no event is there.  
### See also

- [FSEvents.LatestEventId](FSEventsLatestEventId.md)
- [FSEvents.NextEvent](FSEventsNextEvent.md)

### Example Databases

- [Mac only/FSEvents](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/FSEvents.shtml#2ScriptAnchor_)

This function checks for a license.

Created 18th November 2015 , last changed 18th November 2015

  
[FSEvents.GetScriptName](FSEventsGetScriptName.md) - [FSEvents.LastEventIdForDeviceBeforeTime](FSEventsLastEventIdForDeviceBeforeTime.md)

[HTML Version](FSEventsHasNextEvent.shtml)