Description
The flavor
function returns the value of a flavor based on the specified name. This allows access to custom fields (flavors) within formulas.
Syntax
flavor(name)
Arguments
Argument | Description |
---|---|
name |
The name of the flavor whose value should be retrieved. |
Return Types
The function returns the value of the specified flavor. The type depends on the flavor and can be text, a number, a date, etc.
Examples
Description | Formula | Result |
---|---|---|
Retrieve the value of a text flavor |
flavor("Project Title") |
Returns the title of the project, e.g., "Marketing Campaign" |
Retrieve the value of a numeric flavor |
flavor("Budget") |
Returns the budget value, e.g., 5000 |
Use within a formula |
flavor("Hourly Rate") * flavor("Work Hours") |
Calculates the total cost based on hourly rate and work hours. |
Notes
- Flavor Names: Ensure that the specified flavor name matches exactly with the created flavor name.
- Case Sensitivity: Flavor names are case-sensitive.
- Data Types: The returned value retains the data type of the flavor, which should be considered in calculations.
Comments
0 comments
Please sign in to leave a comment.