XL.Book.ConditionalFormat
-------------------------

Returns a conditional format with defined index.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [16.1](newinversion161.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Book.ConditionalFormat"; BookRef; Index ) 

**MBS**( **"XL.Book.ConditionalFormat"** /\* Returns a conditional format with defined index. \*/  
**$BookRef**; /\* The reference number for the workbook. e.g. $ref \*/   
**$Index**) /\* The index from 0 to size-1. e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| Index | The index from 0 to size-1. | 0 |

### Result

Returns OK or error.

### Description

Returns a conditional format with defined index.   
Index must be less than return value of conditionalFormatSize property.  
### See also

- [XL.Book.AddConditionalFormat](XLBookAddConditionalFormat.md)
- [XL.Book.ConditionalFormatSize](XLBookConditionalFormatSize.md)

### Release notes

- **Version 16.1**
    - Added [XL.Book.ConditionalFormat](https://www.mbsplugins.eu/XLBookConditionalFormat.shtml) and [XL.Book.ConditionalFormatSize](https://www.mbsplugins.eu/XLBookConditionalFormatSize.shtml) functions.

### Blog Entries

- [LibXL 5.2 released](https://www.mbsplugins.de/archive/2026-06-13/LibXL_52_released/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)
- [MBS FileMaker Plugin, version 16.1pr1](https://www.mbsplugins.de/archive/2026-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 20th January 2026 , last changed 20th January 2026

  
[XL.Book.Clear](XLBookClear.md) - [XL.Book.ConditionalFormatSize](XLBookConditionalFormatSize.md)

[HTML Version](XLBookConditionalFormat.shtml)