Back to Index
Definition: in(idx) — Allowed: numeric expression index; Not allowed: string index.
in(idx)
Reads a digital input channel (1-based index in scripts). Returns 1 when active, else 0.
if (in(1)) { out(1) = 1; }