When trying to compare the current sound() being played with a file("textstring_path") in an if statement, it appears to fail even if said text string is the correct path. But if one were to compare the current sound with file('path') for testing purposes, the if statement will not fail.
Code Snippet (if applicable) to Reproduce Problem:
Here I have created a quick verb which demonstrates the problem. This first snippet shows that file() appears to work properly. (It is obvious that file() is not needed in this situation, but it is for debugging purposes.)
If you replace the above issound() with this one, you will see that I am trying to compare the current sound to file("textstring_path"). Unfortunately, it appears that if the path within the file() procedure is a text string, it will not return a file object.
When one does if(song.file == file("textstring_path")), and said "textstring_path" is equal to song.file, the statement should be true.
The statement is false.