I am currently working on being able to dynamically set a Boolean value. I am still really new to Velocity code so I might have made a mistake in my logic.
Use Case
If a user is in a prehire state set value to true else set value to false.
While user is in a prehire state AD should be disabled. Other wise AD should be enabled.
Error message
Json
{
"name": "IIQDisabled",
"transform": {
"attributes": {
"currentLCS": {
"type": "identityAttribute",
"attributes": {
"name": "cloudLifecycleState"
}
},
"value": "#if($currentLCS=='prehire')true#{else}false#end"
},
"type": "static"
},
"attributes": {},
"isRequired": false,
"type": "boolean",
"isMultiValued": false
},