Help with .contains please.
-
Im trying to figure out how to subtract from a list of audio files, the files that contain "SUB_" because its showing up in my reverb combobox.
this is the original line that adds the items. I want it to subtract any file with prefix "SUB_".
for (x in irs) cmbIr.addItem(x.replace("{PROJECT_FOLDER}").replace(".wav").replace(".WAV").replace(".aif"));
-
C Chazrox marked this topic as a question
-
I got it. I dont know why it didnt work the first time...
for (x in irs) { if (!x.contains("SUB_")) { cmbIr.addItem(x.replace("{PROJECT_FOLDER}").replace(".wav").replace(".WAV").replace(".aif")); } }
Leaving this here for the next lost soul.
-
C Chazrox has marked this topic as solved