The table below is adapted from Foldit Lua Functions (v1). "V1" was the original version of the Foldit Lua interface.
For each function in V1, the table shows the equivalent "V2" function, and links to the detail page for that function.
Many of the V1 functions are almost identical to their V2 counterparts. A few are marked as "similar to" V2 functions.
For example, the V1 functions "do_global_wiggle_all", "do_global_wiggle_backbone" and "do_global_wiggle_sidechains" are all similar to "structure.WiggleSelected" in V2. In structure.WiggleSelected, two optional arguments specify whether to wiggle the backbone and the sidechains.
Several V1 functions like "do_shake" and the wiggle functions have an optional "iterations" argument. In the equivalent V2 functions, iterations must be specified. In V1, the user was expected to stop the function manually if the number of iterations wasn't specified. Most users prefer recipes that can be left to run unattended, however.
Some V1 functions such as "select_index" take a variable-length list of segments. In V2, the equivalent function, selection.Select, takes only a single segment. In general, the V2 functions don't have variable-length argument lists. The "print" function does handle a variable number of arguments, however.
This table shows only the V1 functions. There are many additional V2 functions which don't have V1 equivalents.