Back to Index

Definition: in(idx) — Allowed: numeric expression index; Not allowed: string index.

Reads a digital input channel (1-based index in scripts). Returns 1 when active, else 0.

Example

if (in(1)) {
  out(1) = 1;
}