Shell.SetDataAvailableEvaluate
------------------------------

Sets expression to be run when shell has data available.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [10.0](newinversion100.md) | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ❌ No |

MBS( "Shell.SetDataAvailableEvaluate"; ShellRef; Expression ) 

**MBS**( **"Shell.SetDataAvailableEvaluate";** /\* Sets expression to be run when shell has data available. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Expression**) /\* The expression to evaluate. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Expression | The expression to evaluate. |  |

### Result

Returns OK or error.

### Description

Sets expression to be run when shell has data available.  
### See also

- [PortMidi.SetDataAvailableEvaluate](PortMidiSetDataAvailableEvaluate.md)
- [SerialPort.SetDataAvailableEvaluate](SerialPortSetDataAvailableEvaluate.md)
- [Shell.GetDataAvailableEvaluate](ShellGetDataAvailableEvaluate.md)
- [Shell.SetDataAvailableScript](ShellSetDataAvailableScript.md)
- [Socket.SetDataAvailableEvaluate](SocketSetDataAvailableEvaluate.md)

### Release notes

- **Version 10.0**
    - Added [Shell.SetDataAvailableEvaluate](https://www.mbsplugins.eu/ShellSetDataAvailableEvaluate.shtml), [Shell.GetDataAvailableEvaluate](https://www.mbsplugins.eu/ShellGetDataAvailableEvaluate.shtml), [Shell.SetDataAvailableScript](https://www.mbsplugins.eu/ShellSetDataAvailableScript.shtml), [Shell.GetDataAvailableScriptName](https://www.mbsplugins.eu/ShellGetDataAvailableScriptName.shtml) and [Shell.GetDataAvailableScriptFileName](https://www.mbsplugins.eu/ShellGetDataAvailableScriptFileName.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 9.6pr1](https://www.mbsplugins.de/archive/2019-12-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 17th November 2019 , last changed 17th November 2019

  
[Shell.SetCurrentDirectory](ShellSetCurrentDirectory.md) - [Shell.SetDataAvailableScript](ShellSetDataAvailableScript.md)

[HTML Version](ShellSetDataAvailableEvaluate.shtml)