validation error on calculated dataprovider

I am trying to define a calculation in a table that will return either a Yes or No value:
return if ( tkstatus == “Active” && (tkcategory == “Partner” || tkcategory == “Associate”) )
{
“Yes”
}
else
{
“No”
};

I get a validation error, but I just cannot see anything wrong with the syntax. Can someone please help?

my guess:

if ( tkstatus == “Active” && (tkcategory == “Partner” || tkcategory == “Associate”) )
{
return “Yes”
}
else
{
return “No”
};

  • david

Thanks a lot. That does it!