How do know if there is one or more "." in a string.

If there is any "." then I perform certain action, and If there is non then I do something else