Aller au contenu principal

print

Output a string.

PRINT

NAME

print - Outputs a string.

SYNOPSIS

print(args, [ sort : true|false] )

DESCRIPTION

This function takes in any type of expressions. Non-string values will be coerced to strings.

PARAMETERS

args
The input data/expressions.
sort
true or false, if the "sort" argument is defined to be true, associative array will be sorted by key alphabatecially or numerically when printed.

RETURN

This function returns the entered value.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

res={_{print("this is a string", "another")}}. return res=this is a stringanother.
res={_{print(sort:true,"this is a string", "another")}}. return res=this is a stringanother.
res={_{print(sort:true,"this is a string", {3:1,2:2})}}. return res=this is a string{2:2,3:1}.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.