# How to Check if a Page List Property Contains Specific Values

**URL:** <https://forums.pega.com/t/how-to-check-if-a-page-list-property-contains-specific-values/9288>\
**Category:** General\
**Tags:** platform, other-industry, pega-platform, senior-system-architect\
**Created:** [April 3, 2025, 8:39pm UTC](https://forums.pega.com/t/how-to-check-if-a-page-list-property-contains-specific-values/9288 "2025-04-03T20:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeandroTaveira](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/leandrotaveira/32/23391_2.png) [@LeandroTaveira](https://forums.pega.com/u/LeandroTaveira)\
**Post date:** [April 3, 2025, 8:39pm UTC](https://forums.pega.com/t/how-to-check-if-a-page-list-property-contains-specific-values/9288/1 "2025-04-03T20:39:25Z")

</div>

**Introduction**

To check if a specific value exists within a property in a page list, we can use the _IsInPageList_ function.

The _IsInPageList_ function is specifically designed to check if a value exists within a property in a page list.

This is exactly what you need when you want to check if a specific value exists in a property within a page list inside a Data Transform.

Syntax and Usage

@IsInPageList(String lookFor, String lookAt, ClipboardProperty lookIn)

Where:

- lookFor [value to look for]
- lookAt [property name to look at]
- lookIn [pagelist to look in]

This function verifies whether the value passed as input exists in the specified property within the page list.

Return Values:

- true if it finds the value in the page list property
- false if the value is not found

**Example 1: Basic Usage**

Scenario: I need to check if any of my Pega operators is a “UCT Field Agent”

1. Set up your pages in the pages and classes

 ![Pages and classes.png](https://pega1.discourse-cdn.com/pega/original/3X/6/c/6cffeca81ccb02c40f72f335cedae6648b65f7c2.png)

1. Call the ‘_D\_pxOperatorsList_’ to get the operators list

2. Set a ‘When’ action to check for the “UCT Fields Agents”:

3. @_IsInPageList_(“UCT Field Agent”, “pyPosition”, OperatorList.pxResults)

 ![Definition sample.png](https://pega1.discourse-cdn.com/pega/original/3X/9/3/93510a5d54297174e3930846096a8594f3356955.png)

1. If you wish to count how many Agents you have, you can use the _@countInPageList_ function:

2. @countInPageList(“UCT Field Agent”, “pyPosition”, OperatorList.pxResults)

**Example 2: Using with Variables**

You can use variables with the IsInPageList function.

Here’s an example of the usage:

@IsInPageList(Param.JobTitle, “pyPosition”, OperatorList.pxResults)

 ![Using with variables.png](https://pega1.discourse-cdn.com/pega/original/3X/7/f/7f011598fd31ee23e35f6d47c94fe32cfb3c931f.png)

**Working with Property Lists (Value Lists)**

If you are looking for values in a PropertyList (Value List), you should use the ‘_IsInPropertyList_’ function instead:

Syntax and Usage

@IsInPropertyList(String lookFor, ClipboardProperty lookIn)

Where:

- lookFor [value to look for]
- lookIn [valuelist to look in]

Example:

1. Create a property called ‘_NamesList_’ of type Text
2. Add a few names to it
3. Check if specific names are on the list

 ![ValueListSample1.png](https://pega1.discourse-cdn.com/pega/original/3X/6/8/680fed39fc707e601634460604111c1eb01ede0a.png)

 ![ValueListSample2.png](https://pega1.discourse-cdn.com/pega/original/3X/2/e/2ef0743aa2335a760e8c580d93e491b1e47f6d91.png)

1. Check the Param Page.

 ![ValueListSample3.png](https://pega1.discourse-cdn.com/pega/original/3X/7/d/7d76532d1669645430ab648018ac4f71066daadf.png)

**References**

1. Pega Support Center - The IsInPageList function is documented in the Pega Support Center, which confirms it “verifies whether the value passed as input is in the property that is in pagelist. Return true if it finds the clipboard property in page list and false otherwise.”
