Skip to content
TheBuzzSaw edited this page Sep 24, 2015 · 3 revisions

Range syntax expresses a tuple consisting of a low value and a high value. It is expressed as low to high such as 1 to 3.

for (x in 1 to 8) Electrify(x);
for (x in values[0 to 3]) Dazzle(x);

switch (value)
{
    case (0 to 7) Blam(value);
    case (8 to 11, 13, 22 to 39) Zap(value);
{

Clone this wiki locally