<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
0D54z00009JbzIMCAZOkta Identity EngineWorkflowsAnswered2025-10-27T09:00:35.000Z2023-06-16T15:39:37.000Z2023-06-20T17:06:46.000Z

dye4h (dye4h) asked a question.

Okta Workflow Function Expression result always False

I am trying to use the True/False Expression function in Okta Workflow to compare two conditions as given below.

output1 == "" and output2 != ""

When I am putting some value in output2 and output1 is empty, I am getting the result as False, but this should be True.

When both are empty also get False.

Please guide me if I missed something.

 

Image is not available


  • TimL.58332 (Workflows)

    @dye4h (dye4h)​ - Based on your screenshot it appears to be working correctly. You are performing a text comparison in your example:

     

    >Text comparisons are currently not supported inside a True/False Expression. We are working on fixing this, but for now use Compare to do text comparisons.

     

    Creating the same design as you are utilizing and putting an number in the second field returns True. Putting a letter in the second field returns False.

     

    Something like this would meet your use case:

     

    image

    Expand Post
    Selected as Best
  • TimL.58332 (Workflows)

    @dye4h (dye4h)​ - Based on your screenshot it appears to be working correctly. You are performing a text comparison in your example:

     

    >Text comparisons are currently not supported inside a True/False Expression. We are working on fixing this, but for now use Compare to do text comparisons.

     

    Creating the same design as you are utilizing and putting an number in the second field returns True. Putting a letter in the second field returns False.

     

    Something like this would meet your use case:

     

    image

    Expand Post
    Selected as Best
  • dye4h (dye4h)

    @TimL.58332 (Workflows)​ Thanks for your response, could you please tell me, when that 'True/False Expression' will be fixed?

    • TimL.58332 (Workflows)

      Unknown but probably not near/immediate future. I suspect the fix will require a major rework of an infrequently used card that already has a viable work-around so the priority is low. The other Boolean cards can handle a series of logic (So it can be more than the 2 compares illustrated, you could perform a whole series of them). If the logic became very long or very complex it could just be built out as a helper that works as a "function" where you pass in a value and returns the result.

      Expand Post
This question is closed.
Loading
Okta Workflow Function Expression result always False