FORMULA LANGUAGE
field result:=result; difference:=earnings - expenses; r:=@If( ( @Sign( difference ) = 1); "Profit!"; ( @Sign( difference ) = -1 ); "Loss!"; "Break even" ); @SetField( "result"; r )
See Also