Prints the contents of the specified variables to the Log.
The print command prints the contents of any variable(s) to the feedback line. Each value (and array element) will get its own log entry. If you specify
-error, the value printed for each entry will have the words "Warning: " or "ERROR: " prepended to it, respectively, and will draw with an alternate background color on the log line of the status bar.
|any||yes||This argument can be any data type. If it is an array type, each array value is printed to the command log in its own line.|
You may specify any number of variables/values to print.
|Name||Flag arguments||Argument type||Exclusive to||Comments|
|0||—||error||Marks each log entry as a warning. The word Warning: prepends the entry and a different background color is applied in the Log line of the status bar.|
|0||—||warning||Marks each log entry as an error. The word ERROR: prepends the entry and a different background color is applied in the Log line of the status bar.|
// Demonstrate the versatility of the print command
vector $vec = << 1, 2, 3 >>;
$str = "test 1";
$str = "test 2";
print -error "Something very wrong has happened";