Can someone please explain me the formula below
Global BactId as String
dim numBactId as Number
dim lenBactId as Number
lenBactId = 0
numBactId = {RESULT.REPLICATE_COUNT}
if ({RESULT.FORMATTED_ENTRY} = "Not Applicable") then
if (numBactID = 0) then
BactId = "Not Applicable"
Formula = BactId
end if
elseif ({RESULT.FORMATTED_ENTRY} <> "Not Applicable") then
if (numBactId <= 1) then
BactId = ""
BactId = {RESULT.FORMATTED_ENTRY}
elseif (numBactId > 1) then
BactId = BactId + "/" + {RESULT.FORMATTED_ENTRY}
end if
Formula = BactId
end if
Global BactId as String
dim numBactId as Number
dim lenBactId as Number
lenBactId = 0
numBactId = {RESULT.REPLICATE_COUNT}
if ({RESULT.FORMATTED_ENTRY} = "Not Applicable") then
if (numBactID = 0) then
BactId = "Not Applicable"
Formula = BactId
end if
elseif ({RESULT.FORMATTED_ENTRY} <> "Not Applicable") then
if (numBactId <= 1) then
BactId = ""
BactId = {RESULT.FORMATTED_ENTRY}
elseif (numBactId > 1) then
BactId = BactId + "/" + {RESULT.FORMATTED_ENTRY}
end if
Formula = BactId
end if