# Feed Actions: Compare and replace

LitCommerce Feed Management offers multiple rules when setting up your feed, enabling you to locate, modify, and optimize your product data for the target platform.

This article introduces you to the “Compare and replace value” action.

## <mark style="color:$primary;">**Set up and apply**</mark>

For more details on how to set up and apply the rule, refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules).

## <mark style="color:$primary;">**How it works**</mark>

The “Compare and replace value” action appears under the Then and And-statements. It allows you to check a product attribute (including Main Store fields, metafields, and custom fields) for specific values and replace them with your selected values when matched.

<figure><img src="/files/i8crvIY1t5iDObhmlqed" alt=""><figcaption></figcaption></figure>

The rule contains two boxes:

* **When field is equal to:** Displays the text you want to find in your product attribute.
* **Then change value to:** Displays the new text that will replace the detected value.

{% hint style="info" %}

* **You can enter multiple values in each box, but only one value per line. Each line in both boxes forms a pair of values, and LitCommerce matches them line by line.**

* **The input field values used for comparison must exactly match the original data. Values are not case-sensitive.**
  {% endhint %}

This rule is ideal for data correction, text standardization, platform compliance, and SEO optimization, all while preserving your original Main Store data.

**Example:** You would like to change the Vendor “Baking Now” to “Crème Florale Co.” specifically for this Google Shopping feed. The following action can be used.

Take “Product Title” and “compare and replace”. On line 1:

* **When field is equal to:** “Baking Now”
* **Then change value to:** “Crème Florale Co.”.

<figure><img src="/files/p1pZOUnvCIYbjbpFgOaW" alt=""><figcaption></figcaption></figure>

After this rule, all products with the Vendor “Baking Now” will have this field displayed as “Crème Florale Co.” in the feed.

<div><figure><img src="/files/8OqCSCUSeWRKtQ1WCrpn" alt=""><figcaption></figcaption></figure> <figure><img src="/files/7mfrhSKU2RBun8lLS04X" alt=""><figcaption></figcaption></figure></div>

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# 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://help.litcommerce.com/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules/feed-actions/feed-actions-compare-and-replace.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.
