Statements |
Assignment Statement |
For Statement |
Print StatementThe Print statement is used to output text and parameter values to the shell window from which Tao is invoked. This is useful for getting ongoing feedback about how a score is proceeding. The following script fragment illustrates its use:
.
.
Parameter p1,p2,p3;
Init:
p1=10;
p2=20;
p3=30;
...
Score 1 secs:
At 0 secs:
Print "p1=", p1, "p2=", p2, "p3=", p3, newline;
...
Every 0.2 secs:
Print "Elapsed Time=", Time, newline;
...
...
In this example we see four different types of item being `printed'.
The first is a character string, no surprises there, the second is
a user defined parameter, the third is a system variable
| ||
Statements |
Assignment Statement |
For Statement |
| ©1999,2000 Mark Pearson
m.pearson@ukonline.co.uk April 30, 2000 | ||