CoreML.Available
----------------

Whether CoreML is available.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreML](component_CoreML.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "CoreML.Available" ) ### Parameters

none

### Result

Returns 1, 0 or error.

### Description

Whether CoreML is available.  
Should return 1 on macOS 10.13 or newer or 0 on other versions.  
### Examples

Check availability:

 If \[ MBS ("CoreML.Available") ≠ 1 \]   
 Show Custom Dialog \[ "Core ML not available" ; "Please run on macOS 10.13 High Sierra" \]   
 Exit Script \[ Text Result: "" \]   
End If  
### Example Databases

- [Mac and iOS/Machine Learning/Core ML Photos](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Machine%20Learning/Core%20ML%20Photos.shtml#6ScriptAnchor_)
- [Mac and iOS/Machine Learning/CoreML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Machine%20Learning/CoreML.shtml#1ScriptAnchor_)

This function is free to use.

Created 16th September 2017 , last changed 16th September 2017

  
[CoreML.AddUndefinedParameter](CoreMLAddUndefinedParameter.md) - [CoreML.Clear](CoreMLClear.md)

[HTML Version](CoreMLAvailable.shtml)