Tymless Tutorial: Data



   
  < constants

Text

 
colours >
 

Drawing

Control

Data

Reference

 

To use text in Tymless, enclose it in double quotes ", e.g.

tell "hello world"

Text can also be assigned to variables.

// prints a list of numbers
a="Some numbers: "
do 10 a+=$# + ", " end
tell a

The plusequals assignment += is a shorthand way of saying

a = a + ...

and when adding a number (such as $#) to text, Tymless automatically converts the number to text first.

Tymless provides a number of functions and operators for manipulating text, e.g. to convert to upper or lower case, etc.

Also text can be output either to the message tab (using tell or print) or to the image tab as annotations (using note).

 

 

   
  < constants
 
colours >