Scalar FunctionsConditional FunctionscoalesceCopy MarkdownReturns the first non-empty value (not null and not empty string).Syntax coalesce(value) Parameters PropTypevalueany Returns: any Examples Example 1 print coalesce(null, 793) print_0 (long)793 Example 2 print coalesce('', 'Valhalla') print_0 (string)Valhalla Example 3 print coalesce(dynamic(null), dynamic(42), 5) print_0 (long)42caseEvaluates predicates in order and returns the first matching value.iffEvaluates the predicate and returns value_if_true or value_if_false.