# Custom Expression

The Custom Expression Editor, accessible by clicking on the "..." button, allows you to use advanced expressions for generating your values. You can use a wide range of functions and operators such as string functions, mathematical operations, logical expressions (if-else statements), and reference other columns in your dataset to create new and unique values.

<div align="left"><figure><img src="/files/mujAGOecAkxIZkNT1JHC" alt=""><figcaption></figcaption></figure></div>

## Faker Configuration

* **Expression**: Enter the custom expression to generate the data. For example, `If(Len([password]) > 10, True, False)`.
* **Add Suffix**: Enter any additional suffix to append to the generated data (optional).
* **Replace only if Non-Null**: Check this box to ensure that the faker only replaces non-null values in the column. If unchecked, it will replace all values, including nulls.

By configuring these options, you can tailor the custom expression faker to generate appropriate anonymized data for your specific column in DataFakery Studio, ensuring it meets your custom logic and requirements.

![](/files/Adm69GO2fEY0iSQSPFEE)


---

# 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://docs.datafakery.io/fundamentals/generators-fakers/custom-expression.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.
