put text

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
put [ unicode ] <text>
Summary

Write the (unicode) text string to stdout.

Introduced4.6.3
OSmac, windows, linux
Platformsserver
Parameters
NameTypeDescription
text

A string containing the text to output. If unicode is not specified, text is considered to be in the native text encoding for the platform and is automatically converted to match the current outputTextEncoding setting. If unicode is specified, text is considered to be a binary string containing UTF-16 encoded text; similarly, this is automatically converted to match the current outputTextEncoding setting.

Example
put "hello world"
put unicode uniEncode(tMyUTF8String, "UTF8")
RelatedCommand: put header, put, put markup, put binary, put content
Keyword: after, before
Property: outputLineEndings
Description

Use the put text command to write the (unicode) string to stdout.

When converting, any characters that are encountered which are not representable in the output text encoding are output as '?'.

In both cases, the internal line ending character 'LF' is transformed on output to match the setting of the outputLineEndings property.

Tagstext processing