Here we define a task that can be stopped or started. This is a local variable accessible only in this task. Loop forever or at least until the task is stopped. This variable is local to this block. Each program can have as many as ten tasks.
Every program has to have a main task.
Start one subtask. Start another subtask. RCX 2.0 also provides mechanisms for controlling access to resources like motors that are shared across tasks, monitoring events, working with simple arrays, and using the IR port to send arbitrary bytes of data. NQC with RCX 2.0 is adequate for handling some pretty impressive programming tasks, but it's obviously limited. Forth is a programming language that's been around for some time.