schrodinger()

Description

Like Schrödinger’s cat, schrodinger() simultaneously holds both true and false values, but will give you just one of those values when you evaluate it.

Syntax

schrodinger()

Usage

retell (3) {
  tellme(schrodinger());
}

// may print:
// true
// true
// false

Using the retell code block, this program prints a bunch of the value of schrodinger() three times. Each time, schrodinger() will return either true or false. In this run, it returns true two times and false the final time.

Examples