def bool2str(logical):
    """Converts a boolean type into a string .TRUE. or .FALSE. . 

   :param logical: logical  
   :type logical: boolean
   :returns: .TRUE. or .FALSE.
   :rtype: string 

   :Example:

   >>> from westpy import * 
   >>> t = bool2str(True)
   >>> f = bool2str(False)
   >>> print(t,f) 
   .TRUE. .FALSE.
   """
    if logical:
        return '.TRUE.'
    else:
        return '.FALSE.'
