Back to Index

Definition: load(name [, default]) — Allowed: identifier or string literal name; default is numeric expression; Not allowed: expression name.

Initializes name from non-volatile storage. If absent, default_expr is evaluated and assigned (not saved). Each identifier maps to its own stored slot.

Example

load(counter, 0);
every(1000) {
  counter = counter + 1;
  save(counter);
}