Hi dan!
First of all, thanks for yours replies, but i dont found solution with the problem “if in other if”, here is my code.
THIS CODE RETURN ME A WARNING: “EXPECTED: ; AT LINE 7” WHY????
n=(Math.round(thisComp.layer(“Control Layer”).effect(“Numero_de_decimales”)(“Slider”)))+3;
m=thisComp.layer(“Control Layer”).effect(“Escala”)(“Slider”);
caracteres_unidades=thisComp.layer(“ESCRIBE LAS UNIDADES Y OCULTAME”).text.sourceText;
MostrarUnidadesIndice=thisComp.layer(“Control Layer”).effect(“Mostrar_Unidades_Indice”)(“Checkbox”);
if (m!=0){
If (MostrarUnidadesIndice==1){
(text.sourceText=((1/m).toFixed(n))*100)+(” “)+(caracteres_unidades);
}else{
{(text.sourceText=((1/m).toFixed(n))*100);}
}else{
If (MostrarUnidadesIndice==1){
(text.sourceText=((1).toFixed(n))*100)+(” “)+(caracteres_unidades);
}else{
(text.sourceText=((1).toFixed(n))*100);}
}