@Ilya So what you do involes some kind of probability logic? I have seen some stuff by Keisler and Hoover, who used model theoretic methods to develop an equivalent to the finite dimensional distributions for adapted processes.
Er, ok, figured that one out. Just needed == instead of = in the If. But I'm still producing another error with my code. I'll have to try to create another short example for it.