MetaDataQuery.SetEvaluate
-------------------------

Sets expression to be run when initial gathering is done.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MetaDataQuery](component_MetaDataQuery.md) | [8.0](newinversion80.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "MetaDataQuery.SetEvaluate"; ShellRef; Expression ) 

**MBS**( **"MetaDataQuery.SetEvaluate";** /\* Sets expression to be run when initial gathering is done. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Expression**) /\* The expression to evaluate.  
Can be in local language of FileMaker Pro or english.   
For Server must always be in english.e.g. "Let ( $$Done = 1 ; 1 )" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Expression | The expression to evaluate.   Can be in local language of FileMaker Pro or english.    For Server must always be in english. | "Let ( $$Done = 1 ; 1 )" |

### Result

Returns OK or error.

### Description

Sets expression to be run when initial gathering is done.  
### See also

- [MetaDataQuery.GetEvaluate](MetaDataQueryGetEvaluate.md)

This function is free to use.

Created 16th December 2017 , last changed 4th April 2018

  
[MetaDataQuery.SearchScopes](MetaDataQuerySearchScopes.md) - [MetaDataQuery.SetQueryString](MetaDataQuerySetQueryString.md)

[HTML Version](MetaDataQuerySetEvaluate.shtml)