@sharvari - You could use the below code, it should work.
{
"name": "Emp Lifecycle Status",
"type": "static",
"attributes": {
"isUserTermed": {
"attributes": {
"values": [
{
"attributes": {
"name": "isTermed"
},
"type": "identityAttribute"
},
"null"
]
},
"type": "firstValid"
},
"value": "#if($isUserTermed != \"null\")inactive#{else}active#end"
}
}