Bundt Scripting Reference
·
Bundt Scripting Language version 1.0.1.0
write
statement
Writes the results of one or more expressions to the output stream.
If multiple expressions are provided, their results are written on a single line and separated with spaces.
Syntax
write Expression, Expression, ...
Element |
Type |
Optionality |
Notes |
Expression |
Expression |
Mandatory. |
The expression to evaluate and write to the output stream. |
Returns
A sequence of the written values.
Examples
Intent |
Code |
Write the result of a simple calculation |
write (17 - 6) / 5;
2.2
|
Write the results of multiple expressions |
write "The result is ", (17 - 6) / 5;
The result is 2.2
|
Write the result of executing a statement |
write create class Person;;
Person
|
See Also
Contents distributed under a Creative Commons Attribution 4.0 International License
·
About
·
Terms of Use
·
Contact Us
·
last updated on 08 October 2020