I'm writing a formula that replaces a string "recommendation" (initially created as Null()) with "this is the recommendation"
I currently have 4 different attempts to make this work in my code, and none of them are working.
([string], [string], 'replacement text')
([string, '[string]', 'replacement text')
([string], '', 'replacement text')
([string], NULL(), 'replacement text')
I know SOMETHING is happening because my output changes from NULLs to '' (empty string).
(FWIW, yes, the #'s are in numeric computable form for the if else logic.)
Anyone have any suggestions?
if ([Size1]>=5.5)
then Replace([recommendation], [recommendation], 'referral to vascular surgeon')
elseif (([Size1]>=4.5) && ([Size1]<=5.4))
then Replace([recommendation], [recommendation], 'follow-up every 6 months and recommend vascular consultation')
elseif (([Size1]>=4.0) && ([Size1]<=4.4))
then Replace([recommendation], '[recommendation]', 'follow-up every 12 months and recommend vascular consultation')
elseif (([Size1]>=3.5) && ([Size1]<=4.0))
then Replace([recommendation], '', 'follow-up every 12 months')
elseif (([Size1]>=3.0) && ([Size1]<=3.4))
then Replace([recommendation], NULL(), 'follow-up every 3 years')
else ([recommendation])
endif