well the string matching check should work... albeit a bit tedius... there's maybe (or as you say, should be) another better way built-in than having to add in the string matching (though you could just add this to the built-in function itself too, I suppose, meh ~ though not sure how you could code in all the different file paths... is there a way to generate all the file paths into a list, along with generating the files themselves into a list, and then thus being able to use quest's "foreach" or an external coding lines of doing it?)... and~or a specific string "algorithm-like parser~compiler~whatever it is called, lol" for it...
there is the error (
http://quest5.net/wiki/Error ), but you still need the coding~scripting I mention above, anyways... meh
this is way above my level of coding ability~knowledge, lol. too advanced coding for me, hehe.
-----------
couldn't you just create a function:
in-scripting: media_file_checking_function ("cactus.png","c:/programs/quest/cactus.png") // maybe the quotes aren't needed
<function name="media_file_checking_function" parameters="file_x,path_x">
if (GetFileURL (file_x) = path_x) {
-> // do script
else if (GetFileURL (file_x) = null) { // or: else if (not GetFileURL (file_x) = path_x) {
-> // do script
}
though, this doesn't address the problem (the lack of not having a method of) generating (listing, thus iterating, thus "foreach" checking of) your files' paths
--------
oooo, this actually isn't hard at all (I didn't realize this previously, lol):
(well, you'll have to first figure out how to code in using an outside list file as described by george)
but then, you'd just need to do this:
foreach (file_x,your_outside_file_list) {
-> list add (global_data_object.file_path_string_list, GetFileURL (file_x))
}
foreach (path_x, global_data_object.file_path_string_list) {
-> if (path_x = "file_path") {
->-> // do script
-> }
}
you could actually also code in it to be even more functional (and more concise~condensed~efficient) too...