IF LAST( TextVar , 1 ) CONTAINS "."
""
ELSE
"."
END IF
Variation:
""
IF LAST( TextVar , 1 ) != "."
"."
END IF
This computation assumes that the text variable TextVar is the last element of the sentence. Occasionally a text variable will end in a period, as in names with titles ("Jay Robinson, M.D."). This computation will look at that variable, see whether it ends in a period, and if not produce a period. If the text variable does end in a period, the computation returns nothing.