In Knackly, the _app.Catalog function allows you to retrieve the name of a specific catalog and use it within conditional statements or as a field in your document. Below are examples of how to implement this.

1. Using _app.Catalog in an if Statement

You can use _app.Catalog to check the catalog name within an if statement. This is useful when you want to conditionally include content in a document or intake based on the catalog name.

Example:

plaintextCopy code
{[if _app.Catalog=="CatalogTest"]}....{[endif]}

In this example, if the catalog name is "CatalogTest", the content inside the if statement (represented by ....) will be included in the document or intake. If the catalog name is different, the content will not appear.

2. Using _app.Catalog as a Variable

You can also use _app.Catalog to dynamically display the name of the catalog within your document.

Example:

plaintextCopy code
{[_app.Catalog]}

In this example, the catalog name (e.g., "CatalogTest") will be inserted into the document where this variable is placed.