This function checks for the Existence of a Layout in the current Database File. The parameter is the Name of the Layout to look for.
The Name of the Layout to search for.
Returns 1 when a Layout Named "ZLayout" exists in the current Database File.
CNSQuery_LayoutExists( "ZLayout" )