# Conditional Transform not evaluating Positive Condition

**URL:** <https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [April 18, 2025, 8:57pm UTC](https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167 "2025-04-18T20:57:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgrant](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mgrant](https://developer.sailpoint.com/discuss/u/mgrant)\
**Post date:** [April 18, 2025, 8:57pm UTC](https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167/1 "2025-04-18T20:57:51Z")

</div>

Hi Team,

I have a conditional transform that is evaluating the negative condition but not the positive one. How do I get it to evaluate the positive condition and place the value I need when the positive condition is true?

I want to apply it to an attribute on the IP. If it is true - it allows the attribute to display - if it is false it places the word false

```auto
{
    "id": "cdf6dc91-f932-4ae2-981c-3d677f2fca3d",
    "name": "Email Transform",
    "type": "conditional",
    "attributes": {
        "expression": "Employee Type eq 'Constractor'",
        "positiveCondition": "true",
        "negativeCondition": "false",
        "employeeType": {
            "attributes": {
                "sourceName": "HT SOurce",
                "attributeName": "Employee Type"
            },
            "type": "accountAttribute"
        }
    },
    "internal": false
}

```

---

<div class="post-metadata">

**Author:** ![KevinHarrington](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kevinharrington/32/6776_2.png) [@KevinHarrington](https://developer.sailpoint.com/discuss/u/KevinHarrington)\
**Post date:** [April 18, 2025, 10:12pm UTC](https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167/2 "2025-04-18T22:12:40Z")

</div>

A few things:

1. you need to reference “employeeType” as a variable in your expression
2. I’m guessing “Constractor” is an error and it should either be Contractor or Consultant:

Try:

```auto
{
    "id": "cdf6dc91-f932-4ae2-981c-3d677f2fca3d",
    "name": "Email Transform",
    "type": "conditional",
    "attributes": {
        "expression": "$employeeType eq 'Contractor'",
        "positiveCondition": "true",
        "negativeCondition": "false",
        "employeeType": {
            "attributes": {
                "sourceName": "HT Source",
                "attributeName": "Employee Type"
            },
            "type": "accountAttribute"
        }
    },
    "internal": false
}

```

---

<div class="post-metadata">

**Author:** ![mgrant](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mgrant](https://developer.sailpoint.com/discuss/u/mgrant)\
**Post date:** [April 21, 2025, 11:21pm UTC](https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167/3 "2025-04-21T23:21:45Z")

</div>

Hi Kevin,

Thanks for chiming in. Looks like that did. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 20, 2025, 11:22pm UTC](https://developer.sailpoint.com/discuss/t/conditional-transform-not-evaluating-positive-condition/113167/4 "2025-06-20T23:22:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
