IsError
-------

Checks whether last plugin function returned error.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Plugin](component_Plugin.md) | [3.4](newinversion34.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "IsError" ) ### Parameters

none

### Result

Returns 1 or 0.

### Description

Checks whether last plugin function returned error.  
Returns 1 if last function returned an error.  
Or returns 0 if no error happened.  
This makes it easier to detect if the result text is an error message vs. a real result.  
  
See also [ClearErrors](ClearErrors.md) and [HadErrors](HadErrors.md) functions.  
  
If you have watch expressions in data viewer, this function may not return the result of the last script line, if the calculation in the data viewer resets it!  
### Examples

Cause an error and handle it:

 Set Variable \[ $r ; Value:MBS ( "[ZipFile.Open](ZipFileOpen.md)"; "" ) \]  
If \[ MBS ("IsError") \]  
 Show Custom Dialog \[ Title: "Error"; Message: $r ; Buttons: "OK”, "Abbrechen” \]  
 Exit Script \[ \]   
End If  
### See also

- [XL.Book.AddPictureContainer](XLBookAddPictureContainer.md)
- [XL.Book.DeleteSheet](XLBookDeleteSheet.md)
- [XL.Book.SaveToFile](XLBookSaveToFile.md)
- [XL.LoadBook](XLLoadBook.md)
- [XML.ExtractText](XMLExtractText.md)
- [XML.Format](XMLFormat.md)
- [XML.GetPathValue](XMLGetPathValue.md)
- [XML.Import](XMLImport.md)
- [XML.Import.Work](XMLImportWork.md)
- [XML.SubTree](XMLSubTree.md)

### Release notes

- **Version 15.0**
    - Changed functions returning CURL errors to mark this as error, so [IsError](https://www.mbsplugins.eu/IsError.shtml) function returns true. This affects [CURL.Perform](https://www.mbsplugins.eu/CURLPerform.shtml), [CURL.FormClear](https://www.mbsplugins.eu/CURLFormClear.shtml), [CURL.FormFinish](https://www.mbsplugins.eu/CURLFormFinish.shtml), [CURL.Upkeep](https://www.mbsplugins.eu/CURLUpkeep.shtml), [CURL.SendText](https://www.mbsplugins.eu/CURLSendText.shtml), [CURL.SendData](https://www.mbsplugins.eu/CURLSendData.shtml), [CURL.PerformAsync](https://www.mbsplugins.eu/CURLPerformAsync.shtml), [CURL.WebSocketSend](https://www.mbsplugins.eu/CURLWebSocketSend.shtml), [CURL.WebSocketReceive](https://www.mbsplugins.eu/CURLWebSocketReceive.shtml), CURL.SetSocketNonBlocking, CURL.SetSocketNonBlocking, [SendMail.PrepareCURL](https://www.mbsplugins.eu/SendMailPrepareCURL.shtml) and various CURL.SetOption functions.
- **Version 12.4**
    - Fixed a problem where ErrorLog would show [IsError](https://www.mbsplugins.eu/IsError.shtml) function.

### Blog Entries

- [My Favorite Features in the MBS Plugin](https://www.mbsplugins.de/archive/2026-09-11/My_Favorite_Features_in_the_MB/monkeybreadsoftware_blog_filemaker)
- [Validate electronic invoices with Saxon - ZUGfERD 2.5](https://www.mbsplugins.de/archive/2026-08-25/Validate_electronic_invoices_w/monkeybreadsoftware_blog_filemaker)
- [Visualize electronic invoices with Saxon - ZUGfERD 2.5](https://www.mbsplugins.de/archive/2026-08-24/Visualize_electronic_invoices_/monkeybreadsoftware_blog_filemaker)
- [MongoDB GridFS in the MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2026-06-17/MongoDB_GridFS_in_the_MBS_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 News](https://www.mbsplugins.de/archive/2026-03-31/MBS_FileMaker_Plugin_161_News/monkeybreadsoftware_blog_filemaker)
- [Validate electronic invoices with Saxon](https://www.mbsplugins.de/archive/2026-03-20/Validate_electronic_invoices_w/monkeybreadsoftware_blog_filemaker)
- [Visualize electronic invoices with Saxon](https://www.mbsplugins.de/archive/2026-03-16/Visualize_electronic_invoices_/monkeybreadsoftware_blog_filemaker)
- [Use Llama.cpp in FileMaker](https://www.mbsplugins.de/archive/2026-02-17/Use_Llamacpp_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [QRCode with sequences in FileMaker](https://www.mbsplugins.de/archive/2026-02-11/QRCode_with_sequences_in_FileM/monkeybreadsoftware_blog_filemaker)
- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2026, Seite 8](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 1/2026, Seite 10 bis 11](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 2/2025, Seite 23](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 1/2025, Seite 25](https://filemaker-magazin.de/neuigkeit/4282-Appetithappen-FMM_202501)
- [Ausgabe 6/2024, Seite 37](https://filemaker-magazin.de/neuigkeit/4277-Appetithappen-FMM_202406)
- [Ausgabe 1/2023, Seite 30](https://filemaker-magazin.de/neuigkeit/4218-Appetithappen-FMM_202301)
- [Ausgabe 5/2022, Seite 26 bis 27](https://filemaker-magazin.de/neuigkeit/4196-Appetithappen-FMM_202205)
- [Ausgabe 2/2022, Seite 29](https://filemaker-magazin.de/neuigkeit/4174-Appetithappen-FMM_202202)
- [Ausgabe 1/2022, Seite 28](https://filemaker-magazin.de/neuigkeit/4172-Appetithappen-FMM_202201)
- [Ausgabe 1/2022, Seite 21 bis 22](https://filemaker-magazin.de/neuigkeit/4172-Appetithappen-FMM_202201)

This function is free to use.

Created 18th August 2014 , last changed 28th October 2025

  
[IsClient](IsClient.md) - [IsIOS](IsIOS.md)

[HTML Version](IsError.shtml)