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

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.