Hi,
It is unclear what you are trying to do given the limited context. Is this part of a JSL script or a column Formula? If it is the latter, you need to specify what the expression returns as shown below:
If(
:Fruit == "Apple",
color = "Red";
Target = {50};,
:Fruit == "Grapes",
color = "Violet";
Target = {50};,
:Fruit == "Cherry",
color = "Red";
Target = {54};
);
color;
Also, are you sure that the column's content :Fruit matches precisely the values in your expression (i.e., no leading or trailing spaces)?
An example of the usage context for this expression would help figure out what may be going on.
Best,
TS
Thierry R. Sornasse