Variable.PopValue
-----------------

Queries and removes the last value from variable.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Variable](component_Variable.md) | [15.2](newinversion152.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Variable.PopValue"; Name ) 

**MBS**( **"Variable.PopValue";** /\* Queries and removes the last value from variable. \*/  
**$Name**) /\* The Name of the variablee.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The Name of the variable | "test" |

### Result

Returns text or error.

### Description

Queries and removes the last value from variable.  
Returns empty value if list is empty.  
### Examples

Pops the last value:

 Let ( \[  
  
r1 = MBS ( "[Variable.AppendValue](VariableAppendValue.md)"; "hello"; "a" );  
r2 = MBS ( "[Variable.AppendValue](VariableAppendValue.md)"; "hello"; "b" );  
r = MBS ( "Variable.PopValue"; "hello" )  
  
\]; r )  
<small>  
Example result: b</small>### See also

- [Variable.Append](VariableAppend.md)
- [Variable.AppendValue](VariableAppendValue.md)

### Release notes

- **Version 15.2**
    - Added [Variable.AppendValue](https://www.mbsplugins.eu/VariableAppendValue.shtml) and [Variable.PopValue](https://www.mbsplugins.eu/VariablePopValue.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.2 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-05-06/Neues_MBS_Plugin_152_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.2 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-05-06/MBS_Plugin_152_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr4](https://www.mbsplugins.de/archive/2025-04-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 15th April 2025 , last changed 16th April 2025

  
[Variable.PopJSON](VariablePopJSON.md) - [Variable.Reset](VariableReset.md)

[HTML Version](VariablePopValue.shtml)