top of page

21. Selective Period (".")

Description

Determines whether or not a period needs to be placed at the end of a sentence.

Code

IF LAST( TextVar , 1 ) CONTAINS "."
""
ELSE
"."
END IF


Variation:

""
IF LAST( TextVar , 1 ) != "."
"."
END IF

Explanation

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.

©2023 by My Site. Proudly created with Wix.com

  • Facebook
  • Twitter
  • LinkedIn
bottom of page