---
title: "Model Rules - Contains in List Rule"
slug: "model-rules-contains-in-list-rule"
description: "In this feature video, learn all about the new Contains in List Rule for model rules in Test Modeller."
tags: ["Test Case Generation", "Get Started", "Test Modeller"]
updated: 2024-09-27T14:49:05Z
published: 2024-09-27T14:49:05Z
canonical: "knowledge.curiositysoftware.ie/model-rules-contains-in-list-rule"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.curiositysoftware.ie/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Rules - Contains in List Rule

In this feature video, learn all about the new Contains in List Rule for model rules in Quality Modeller.

[Embedded content](https://www.youtube.com/embed/h3xW99DSKio?&amp;wmode=opaque&amp;rel=0)

To get started with this new rule, open an existing **model**. In our example, we have a model which decides if an ingredient is a vegetable or not.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680691289130.png)

Next, open the**Test Generation tab** in the **top menu bar**, here you will find the **Rules button**, which opens the **Edit Node Logic wizard.** Here you can add rules to your model.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680691285279.png)![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680691280807.png)

The new rule, **Contains In,** can now be chosen. Then a list of values can be specified for the rule, using commas to separate them.

In our example rule, if the ingredient contains “potato” or “carrot”, the rule will specify that it’s a vegetable. This is then reflected in the generated paths.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1680691274928.png)

## Related

- [Quality Modeller 101](/test-modeller-101.md)
- [Quality Modeller](/get-started-with-test-modeller.md)
- [Test Case Generation](/test-case-generation-in-test-modeller.md)
- [How to Export to Microsoft Word](/how-to-export-to-microsoft-word.md)
- [Rule-Based Test Generation](/rule-based-test-generation.md)
