if you want to return true, just do
return true;
and not return result = true;
If you want to assign the variable result, it must be defined in your process as a process variable and then remove the
return.. because "return result = true" will return always true as the result of the asignation. Unless you want to return the evaluation of the variable with:
return result == true;
Cheers