sprintf command
Derive a runtime value using a sprintf string template. This command is provided via the flobot plugin and isn't offered by any of the other core plugins.
Command config
{
"title": {
"$sprintf": {
"template": "%s %s (aged %d years)",
"inputPaths": [
"employeeData.firstName",
"employeeData.lastName",
"employeeData.age"
]
}
}
}
Property | Type | Description | Required |
---|---|---|---|
template | string |
A string template that can contain %s , %d and similar placeholders |
Yes |
inputPaths | array |
An array of strings - the values of which should be '.' delimited paths pointing to values on the Flobot context. These context values will be combined as per the template to return the output string. See vsprintf for more info. |
No |