c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

FROM_YAML ​

Reads a YAML document into a variable.

destination must be a single variable name; the function writes into it directly. Only the first document is read. On an error (TYPE_MISMATCH, INVALID_ARGUMENT, UNKNOWN_KEY, STRING_TOO_LONG) the variable stays unchanged.

Parameters and results

  • source STRING: the YAML document
  • destination variable: the variable that receives the values
  • no results

Example

c0de
CALL c0de/strings/FROM_YAML readError
    PARAMETER source config ;
    PARAMETER destination settings ;