Whats ir wrong in this custom code?
/**Custom Code*/
Object current = param(1);
treenode activity = param(2);
Token token = param(3);
treenode processFlow = ownerobject(activity);
double valor = Table("TMKN")[token.Fila][7];
if ( valor =1 ){
Model.find("TMKN_P>variables/recipetable/Port 1/Percent (0-100)").value = 100;
Model.find("TMKN_P>variables/recipetable/Port 2/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 3/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 4/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 5/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 6/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 7/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 8/Percent (0-100)").value = 0;
}else if ( valor =2 ){
Model.find("TMKN_P>variables/recipetable/Port 1/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 2/Percent (0-100)").value = 100;
Model.find("TMKN_P>variables/recipetable/Port 3/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 4/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 5/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 6/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 7/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 8/Percent (0-100)").value = 0;
} else if ( valor = 3 ){
Model.find("TMKN_P>variables/recipetable/Port 1/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 2/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 3/Percent (0-100)").value = 100;
Model.find("TMKN_P>variables/recipetable/Port 4/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 5/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 6/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 7/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 8/Percent (0-100)").value = 0;
}else if ( valor =4 ){
Model.find("TMKN_P>variables/recipetable/Port 1/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 2/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 3/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 4/Percent (0-100)").value = 100;
Model.find("TMKN_P>variables/recipetable/Port 5/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 6/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 7/Percent (0-100)").value = 0;
Model.find("TMKN_P>variables/recipetable/Port 8/Percent (0-100)").value = 0;
};