Trouble adding conditional audio feedback

OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 2022.1.2
What are you trying to achieve?:
I have different .wav files for correct responses and incorrect responses. I have the files in the same folder as the psychopy file. I have the audio component with my $soundfile variable as the sound name. Then in my custom code I have an if statement specifying which sound to play. Images below of my program set up along with the error message I receive.

I’m not exactly sure what this message means. Any help would be appreciated.

For now, here’s how you can try to solve the problem:
Change the order of the sound library to the same as the image below:

If the problem doesn’t resolve, maybe you should try looking at the sample rate of the video and formatting it again with another program

That fixed it! Thanks so much.