Quote(val:Any):Str

Convert to string and quote a value. The value is formatted in a way such that Eval() will produce the value again. This function is guaranteed to work for scalars:

  • strings;
  • integers;
  • booleans;
  • floats (except for possible precision issues);
  • EMPTY.

It will also work for some non-scalars where possible, e.g. Quote(Planet(3)) will produce Planet(3).

See also: Functions