Hi everyone,
I am trying to set up an if statement in an anyscript file which is dependent on either finding a certain substring from a filepath or comparing two filepaths (if filepath01 == filepath02...). Is there a way to do this using anyscript functions? It seems simple enough, but I have not been able to find what functions I would need or the syntax they require to accomplish this.
Let's say the main file is located here on my computer: C:\Users\user1\Documents\AnyBody\Study1\Subjects\P1\ InExo \P1_trial1\Main.any.
Is there a way that I could check whether the substring "InExo" was in the main file's filepath by extracting the filepath as a string from its path statement ANYBODY_NAME_MAINFILEDIR, and then trying to find the substring I am looking for?
If there is no way to find a substring within a path, is there another work around that anyone could suggest?
Thank you!
Lindsay