Welcome to Catalog Tips
Search more than 200 articles to learn more about creating and automating your product catalogs
Tip: Start typing in the input box for immediate search results.
LITERAL – Supply string to function expecting field name
Overview
This Custom Field returns the contents of the given parameter. It should be used to supply a string to a function that is expecting a field name.
Syntax
LITERAL(String)
Element | Description |
---|---|
String | This string will be passed as-is. |
Example
The LEFTSTR command expects a field name as the first parameter. If, however, you want to pass a fixed string to this function the LITERAL command should be used:
LEFTSTR(LITERAL(‘abcdefg‘),2)