Python.HasValue
---------------

Checks whether a variable is set for the Python environment.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Python](component_Python.md) | [14.3](newinversion143.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Python.HasValue"; PythonRef; VariableName ) 

**MBS**( **"Python.HasValue";** /\* Checks whether a variable is set for the Python environment. \*/  
**$PythonRef**; /\* The Python reference number.e.g. $python \*/   
**$VariableName**) /\* The variable name.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PythonRef | The Python reference number. | $python |
| VariableName | The variable name. | "test" |

### Result

Returns 1, 0 or error.

### Description

Checks whether a variable is set for the Python environment.  
Returns 1 if variable is set.  
### See also

- [Python.GetValue](PythonGetValue.md)
- [Python.SetValue](PythonSetValue.md)

### Example Databases

- [Python](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Python.shtml#2ScriptAnchor_)

Created 23th May 2024 , last changed 31st May 2024

  
[Python.GetValue](PythonGetValue.md) - [Python.Keys](PythonKeys.md)

[HTML Version](PythonHasValue.shtml)