Merk
06/07/2023, 4:39 PMDavid B
06/07/2023, 10:38 PMGREATEST({custrecord_deprhistamount}, 0)Marc
06/08/2023, 12:00 AMDavid B
06/08/2023, 12:16 AMmichoel
06/08/2023, 1:20 AMELSE NULL as wellDavid B
06/08/2023, 1:55 AMMerk
06/08/2023, 12:16 PMDavid B
06/08/2023, 10:03 PMELSE NULL is redundant, as if you just omit the ELSE, you'll get a NULL anyway
Have a look here, it shows the structure of a CASE expression well. You'll see that you need one END per CASE, but you can have as many "WHEN condition THEN _result_" as you like insideDavid B
06/08/2023, 10:03 PM"If there is nopart and no conditions are true, it returns NULL."ELSE