# Known Issues

### Overview

This guide addresses a known issues in the Pepperi JS Client Side API Rule Engine.

***

### Issue Description

* **Problem:** The Rule Engine currently does not support the Optional Chaining Operator (?.).
* **Impact:** Using this operator, such as `x?.success`, may cause errors in UDFs, stopping script execution.
* **Recommendation:** Avoid using the Optional Chaining Operator in Rule Engine scripts.

#### Incorrect Usage

```javascript
let x = pepperi.api.userDefinedTables.getList({});
let data = x?.success ? x.objects : [];  // This will cause an error
```

#### Correct Workaround

```javascript
let x = pepperi.api.userDefinedTables.getList({});
let data= x && x.success ? x.objects : []; // Safe alternative
```

* **Explanation:** The workaround uses a conditional check (`x && x.success`) to safely access `x.objects`, defaulting to an empty array the condition fails.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.pepperi.com/knows-issues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
