<title>Monkeybread Software - MBS FileMaker Plugin: PHP.ExistsVariable</title></head><body>PHP.ExistsVariable
------------------

Checks if a variable exists.

<style>
td.grau 
{
background-color:#EEE;
text-align: center;
}
</style>| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PHP](component_PHP.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "PHP.ExistsVariable"; VariableName ) 

**MBS**( **"PHP.ExistsVariable";** /\* Checks if a variable exists. \*/  
**$VariableName**) /\* the name of the variable.e.g. $name \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| VariableName | the name of the variable. | $name |

### Result

Returns true if the variable exists, false if it does not.

### Description

Checks if a variable exists.  
### Examples

Check if variable FilePath exists:

$r = MBS( "PHP.ExistsVariable"; "FilePath" )

Check if the PHP variable with the name in the FileMaker variable FilePath exists:

$r = MBS( "PHP.ExistsVariable"; $FilePath )

### Blog Entries

- [PHP Functions in MBS Filemaker Plugin](https://www.mbsplugins.de/archive/2012-10-21/PHP_Functions_in_MBS_Filemaker/monkeybreadsoftware_blog_filemaker)

This function checks for a paid license.

Created 18th August 2014 , last changed 23th January 2023

  
[PHP.Execute](PHPExecute.md) - [PHP.GetResultContainer](PHPGetResultContainer.md)

💬 [Ask a question or report a problem](https://www.monkeybreadsoftware.com/feedback/?what=filemaker&path=PHP.ExistsVariable)

[HTML Version](PHPExistsVariable.shtml)