This site has been deprecated. Do not edit pages here. Please visit the new Pico Labs documentation.

Skip to end of metadata
Go to start of metadata

emit <javascript>

Directly after the declaration block, KRL programs can contain a single, optional emit statement.

The value following the emit statement is put into the Javascript generated from the KRL program immediately after the variable declarations and before any actions. This allows Javascript to be inserted into the program to modify the values of any variables.

The following ruleset shows emit() being used

The following demonstrates the preceding rule: