Endmodule

Ends a .module.

Syntax

Endmodule must directly follow a .module.

.module People
    Count = 1
    .module Ben
        Age = 21
    .endmodule
.endmodule

.echoline "There is ", People.Count, " person."
.echoline "Ben is ", People.Ben.Age, " years old."

Allowed inputs

Uses

It is used much like a "struct" in C, or a "class" in Java. It helps organize variables/constants into clearly defined groups.

See Also

nestmodules-endnestmodules

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.