This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Return piece of script source code as typed by programmer.
Useful, for example, when writing JSON objects and do not want to double double quote
Syntax
s = Stringify(
Code_Expression
)
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
Code_Expression |
Code |
No |
Any piece of code |
Remarks
Restrictions
IMPORTANT: open ( and close ) MUST be on a new line by themselves. Code_Expression MUST be inside () but always in different lines.
Correct:
s = Stringify(
{...}
)
Incorrect:
s = Stringify( {...}
)
Incorrect:
s = Stringify(
{...} )
Incorrect:
s = Stringify( {...} )
See also
Examples
string s = Stringify(
{
"model": "gpt-3.5-turbo",
"messages": [
{"role": "system", "content": "About thinBasic"},
{"role": "user", "content": "Do you know thinBasic programming language?"}
]
}
)