ZLEVELS

Enables the processing of the stack levels at the end of the WarpScript™ code execution so that each one is returned as a separate result to Zeppelin.

If this function is not called during the script, then the result returned to Zeppelin is a text representation of the JSON representing the stack.

If ZLEVELS has been called, a list of results will be returned to Zeppelin, the first result being the one on top of the stack, and each level of the stack will be processed in the following manner.

If a stack level contains anything but a STRING, the content of that level will be converted to a STRING and returned as a text result to Zeppelin.

If a stack level contains a STRING, it will be interpreted according to its prefix:

PrefixProcessing
'#html'The text after the space following #html will be returned as an HTML result.
'#angular'The text after the space following #angular will be returned as an Angular result.
'#table'The text after the space is assumed to be a table result.
'data:image/png;base64,'The rest of the string will be interpreted as a PNG image result.

Any other STRING will be returned as a text result.

This function can only be called from WarpScript™ code executing within a Zeppelin WarpScript™ interpreter.

Signature

Examples

ZLEVELS