Bonsoir une petite question facile, comment "simplifier" ces conditions imbriquées :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
for i:= CheckListBox1.Count -1 downto 0 do
 if CheckListBox1.Checked[i] then
 begin
  if CheckListBox1.Items[i]=Chemin+'0123' then
  RemoveDir(CheckListBox1.Items[i])
 else
  if CheckListBox1.Items[i]=Chemin+'blabla' then
   RemoveDir(CheckListBox1.Items[i])
  else
   if CheckListBox1.Items[i]=Chemin+'abc' then
    RemoveDir(CheckListBox1.Items[i])
   else
[...]


avec quelque chose du genre :
if CheckListBox1.Items[i]=Chemin+'0123' or Chemin+'blabla' or Chemin+'abc' then
RemoveDir(CheckListBox1.Items[i])





Merci de votre aide !