<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007ZwbGFCAZOkta Classic EngineSingle Sign-OnAnswered2024-03-19T19:48:34.000Z2022-04-12T12:42:47.000Z2022-04-13T13:39:56.000Z

SharathK.44425 (Customer) asked a question.

IF/Else Condition in Mapping

I am trying to execute a If/Else condition in the mapping String.toLowerCase(appuser.var1)==4 ? "1082395" : "1569263" where it only returns "1569263". The expected result is var1==4 it should return "1082395" and var1==8 it should return "1569263".


  • SharathK.35700 (Customer)

    This is the right expression for if/else condition String.toLowerCase(appuser.var1) == "4" ? "1082395" : String.toLowerCase(appuser.var1) == "8" ? "1569263" : null

This question is closed.
Loading
IF/Else Condition in Mapping
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply