Problem with my code (end expected)
My code bellow don't work and I don't know why.
The error is "Fin attendue: if à la ligne 16, colonne 2"
In English = "End expected: if at the row 16, column 2"
Thank in advance for your answers.
let t := 0let c := 0let a := 0
for stat in (select 'Sous-tâches') doswitch stat.Statut docase 3: t:=t+1case 2: c:=c+1case 1: a:=a+1default: alert("Erreur")endend
if (c=0 and a=0) then"Terminé"end
if (t=0 and c=0) then"A faire"end
if (c!=0) then"En cours"end
2 replies
-
The line 16 is the first "if".
-
Add semi-colons.let t := 0let c := 0let a := 0for stat in (select 'Sous-tâches') doswitch stat.Statut docase 3: t:=t+1case 2: c:=c+1case 1: a:=a+1default: alert("Erreur")end;end;if (c=0 and a=0) then"Terminé"end;if (t=0 and c=0) then"A faire"end;if (c!=0) then"En cours"end
Content aside
- 5 yrs agoLast active
- 2Replies
- 611Views
