Quote:
Originally Posted by kovidgoyal
{tags:'test($, "red", "black")'}
|
Actually, I think you want
Code:
{tags:'test($, "black", "red")'}
if you want the field to be red when there are no tags.
The test function returns the first string (the second argument) if the value (the first argument) is not empty, otherwise it returns the second string.
In this case, the value being tested is tags. My understanding is that you want to return 'black' if tags is not empty, otherwise 'red'.