up previous next
2.2.9 The Variable It
***** NOT YET UPDATED TO CoCoA-5: follow with care *****

When CoCoA evaluates an expression, the result is usually assigned to the special CoCoA variable named It .

Example
  1+1;
2
-------------------------------
  It;
2
-------------------------------
  It+1;
3
-------------------------------
  It;
3
-------------------------------
  X := 17;  -- "It" is not changed if there is no output
  It;
3
-------------------------------
  X+It;
20
-------------------------------