DirectoryWatcher.SetEvaluate
----------------------------

Sets the expression to evaluate.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DirectoryWatcher](component_DirectoryWatcher.md) | [7.1](newinversion71.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DirectoryWatcher.SetEvaluate"; Watcher; Expression ) 

**MBS**( **"DirectoryWatcher.SetEvaluate";** /\* Sets the expression to evaluate. \*/  
**$Watcher**; /\* The watcher reference number. \*/   
**$Expression**) /\* The expression to evaluate. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Watcher | The watcher reference number. | $watcher |
| Expression | The expression to evaluate. |  |

### Result

Returns OK or error.

### Description

Sets the expression to evaluate.  
### See also

- [DirectoryWatcher.GetEvaluate](DirectoryWatcherGetEvaluate.md)
- [DirectoryWatcher.GetFileName](DirectoryWatcherGetFileName.md)
- [DirectoryWatcher.NextChange](DirectoryWatcherNextChange.md)
- [DirectoryWatcher.Release](DirectoryWatcherRelease.md)
- [DirectoryWatcher.SetFileName](DirectoryWatcherSetFileName.md)
- [DirectoryWatcher.SetScriptName](DirectoryWatcherSetScriptName.md)

This function checks for a license.

Created 5th March 2017 , last changed 5th March 2017

  
[DirectoryWatcher.ReleaseAll](DirectoryWatcherReleaseAll.md) - [DirectoryWatcher.SetFileName](DirectoryWatcherSetFileName.md)

[HTML Version](DirectoryWatcherSetEvaluate.shtml)