> For the complete documentation index, see [llms.txt](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/story-builder/cards/utility-cards/run-if-card.md).

# Run-IF Card

The RUN-IF card empowers you to create dynamic and personalized conversation flows within your AI stories. This card allows you to conditionally skip sections of your story based on user attributes, guiding users through the most relevant paths.

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FVsFBZ2nt9TDxq93wR2N0%2FRun-if.png?alt=media&amp;token=011a96ec-53e2-4f52-b396-0aca6c33a8c6" alt=""><figcaption></figcaption></figure>

### **How it Works:**

1. **Add a RUN-IF Card:** Drag and drop a RUN-IF card onto your story canvas at the desired location.

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FKc9sS6zDp4XKMdd4zCqj%2Fruniff.png?alt=media&amp;token=cdbdd631-100d-41f5-8afc-1f93b97f2571" alt=""><figcaption></figcaption></figure>
2. **Define the Condition:** Click on "Add condition" within the card. Here, you can specify the user attribute you want to evaluate and the comparison operator. The system provides various operators like: &#x20;

   * Starts With
   * Ends With
   * Equal To
   * Not Equal To
   * Contains
   * Not Contains
   * Less Than
   * Greater Than
   * Is Set

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FBZxagutjhK9aulM9fLpG%2Ftart%20with.png?alt=media&amp;token=7a5b3520-15b1-4669-8a7b-704c4dcd8c45" alt=""><figcaption></figcaption></figure>
3. **Select the Value:** Enter the specific value you want to compare the user attribute against (e.g., a specific user ID, a subscription status, etc.).

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FTQnogk3Wznu5jikCXkxt%2Fssss.png?alt=media&amp;token=1bd551c0-0683-4d04-a188-84a988adeeba" alt=""><figcaption></figcaption></figure>
4. **Choose Target Cards (Optional):** Below the condition section, you'll see "Select cards to run if above conditions are true." This allows you to define which cards in your story should be skipped if the user attribute meets the specified condition. If no cards are selected, the entire flow will jump to the next block after the RUN-IF card.

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FnKChSgZVSO6lU6Oz6A88%2Fnexxt%20card.png?alt=media&amp;token=6146bb97-6a5d-48ef-90fd-368475c911a1" alt=""><figcaption></figcaption></figure>

### **Example Scenario:**

Imagine you have a story designed to offer product recommendations. You can utilize a RUN-IF card to personalize the experience. Here's how:

* **Condition:** Attribute {{subscription\_level}} **Equal To** "Premium"
* **Target Cards:** Skip all basic product recommendations.

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FotuEyf7mMGr0bfrp5ZBn%2Fruniff2.png?alt=media&amp;token=0436301f-3105-4d81-8519-3e7d5d8f408c" alt=""><figcaption></figcaption></figure>

<div align="left"><figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FhpveXTO5ttmaTZ3QEkib%2Fimage.png?alt=media&amp;token=d2a27144-d2d1-42db-b68f-40ef3cc78946" alt="" width="208"><figcaption></figcaption></figure></div>

This configuration ensures that premium users bypass the basic product recommendations and proceed directly to recommendations tailored for their subscription level.
