Flow Evaluate FQL - If Statement

Is there a way within an Evaluate block to use FQL and write an if statement?

In my solution, I am trying to add two elements together and if one of the values is null, I want to set the null value to 0.

In the example below, if value 2 is null, set it to 0.

Example:
$number(value1[code= “prm.cost”].value.amount)
+
$number(value2[code= “prm.taxes”].value.amount)

Hi @payload-architect-98

Welcome to the forums!

There is an if-then-else operator in FQL.

See this simplified example for your use case:

1 Like

Thank you! That worked.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.