Transform not working

Hi,
i need to test 3 conditions in the transform, i have written the below transform for testing the conditions but it is not working and the attribute also not showing in the identity attribute list. can you please check the below transform.

{
	"name": "test transform",
	"type": "static",
	"attributes": {
		"values": [{
			"Department": {
				"attributes": {
					"sourceName": "source1",
					"attributeName": "Department"
				},
				"type": "accountAttribute"
			},
			"Company": {
				"attributes": {
					"sourceName": "source2",
					"attributeName": "Company"
				},
				"type": "accountAttribute"
			},
			"Division": {
				"attributes": {
					"sourceName": "source1",
					"attributeName": "Division"
				},
				"type": "accountAttribute"
			},

			"value": "#if($Department=='abc department' && $Company=='abc company' && $Division =='abc division')condition1#{elseif}($Division=='ebc Division' || $Company=='abc company')condition2#{else}Default-conditions#end"

		}]
	}
}

Hello @SureshKiran,

The only thing I notice is that you have curly brackets {} around the elseif conditional. These are only needed around the final else conditional. Try it without the brackets around the else if.

{
	"name": "test transform",
	"type": "static",
	"attributes": {
		"values": [{
			"Department": {
				"attributes": {
					"sourceName": "source1",
					"attributeName": "Department"
				},
				"type": "accountAttribute"
			},
			"Company": {
				"attributes": {
					"sourceName": "source2",
					"attributeName": "Company"
				},
				"type": "accountAttribute"
			},
			"Division": {
				"attributes": {
					"sourceName": "source1",
					"attributeName": "Division"
				},
				"type": "accountAttribute"
			},

			"value": "#if($Department=='abc department' && $Company=='abc company' && $Division =='abc division')condition1#elseif($Division=='ebc Division' || $Company=='abc company')condition2#{else}Default-conditions#end"

		}]
	}
}