Conditional operator

Is there any conditional operator in flux ?
In its usual meaning, because that thing that supposed to be one - doesn’t work as expected:

func = (n) => {
  if n == 1 then
    return 123
 
 //do something else
return 456
}

invalid: compilation failed: error @31:3-31:20: expected ELSE, got RETURN (return) at

How to do it then ?

Hello @olpchk,
Yes there is

Looks like “else” is not optional
But they’ve forgot to note this fact with big red letters