Wait on Occurrence

Waits for the Set Occurrence function to set or trigger the given occurrence.

ms timeout is the specified amount of time, in milliseconds, for the occurrence to occur. If the occurrence does not occur within the specified ms timeout, the function returns a value of TRUE. If ms timeout is –1, the function does not time out.
occurrence is the occurrence refnum that links Wait on Occurrence and Set Occurrence.
If ignore previous is TRUE, and another node has set the occurrence before this function began executing, the function ignores the previous occurrence and waits for another one.
timed out is TRUE if the occurrence does not occur within the specified ms timeout. If ms timeout is -1, timed out is FALSE.