Print statements

How can I use a print statement to say text and a variable, for a Java example:
System.out.print("I am " + age+ " years old");

drag this into the snap editor
(ツ)

Or
untitled script pic (6)

Or

set [output V] to (list $delInput $addInput :: list) // do this once
add [I am Graham's Number years old!] to (output) // do this for each print

A bit more complicated, but how about this particularly for successive prints:

set [output V] to (list @addInput)
set [prints V] to (list [I am Infinity years old.] [Impossible!!!!!] @delInput @addInput::list)
for each ((print)) in (prints) {
add (print) to (output)
} @loopArrow

or this:
untitled script pic (40)

or just get rid of the output variable altogether, leaving with this

set [prints V] to (list [I am Infinity×Infinity years old.] [Even more impossible!!!!!] @delInput @addInput)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.