< Previous | Contents | Manuals Home | Boris FX | Next >
Control Flow Statements
Synthia has "humanized" control flow sentences such as if...then, otherwise, for each, and return.
define "give me a number mississippi" means "for each of the numbers 1 to the number, say the number, then say "mississippi"".
Rather than the complex statements typically found in programming languages, in Synthia these statements are typically part of a comparatively simple step in a procedure. You can see some sample usage in the section on procedures.
Exercise: locate and use the additional forms of for each.
There is also a rule for every (also for all equivalently) as well as for each ; the difference is subtle. For each tracker will look for a prior list of trackers, and use it if found, or all trackers if not. (You may have just been talking about all far red trackers.) The for every/for all rules always use all trackers.
©2024 Boris FX, Inc. — UNOFFICIAL — Converted from original PDF.