Calculated Field if value empty

I'm trying to create a calculated date field that will calculate differently based on if the target field is empty or not, so:

if the $build_commencement_date_c date field is empty, 

addDays(build_stage_revised_start_c,$build_stage_days_slab_)

if $build_commencement_date_c date field is not empty

addDays($build_commencement_date_c,$build_stage_days_slab_c)

After reviewing responses to previous posts, I have pieced together:

ifElse(equal($build_commencement_date_c,""),addDays(build_stage_revised_start_c,$build_stage_days_slab_c),

ifElse(greaterThan($build_commencement_date_c,0),addDays($build_commencement_date_c,$build_stage_days_slab_c),0))

but it's not working, and is possibly completely off track!

Can anyone help??

Parents Reply Children