Skip to content

Features Statements Require

Kameron Brooks edited this page Aug 17, 2019 · 1 revision

Require

require "MyContext";

Specifies the accepted type of context class. If there is a require statement in your script, you will only be able to pass in contexts that match the specified type. Otherwise you will get a run-time exception. If no require statement is specified, you can try to pass in any context object.