Once you've defined variables in the Script, you can display them in the Text Block. For example, using the previous three-line script we've created so far, you can place the following in the Text Block:
See the 3: $variable<br /> See the string: <b>$stringVar</b><br />
If you save that and hit View, you should get what you see in figure . Note how the "$variable" was turned into a 3, and the "$stringVar" was turned into "I have a variable with the value 3."
If you are generating numbers using a formula which includes a division operation, it is advisable to format your output. For example, if $variable=1/3, it will display with too many digits. You can adjust the format using the num output tag described in the Output Tags section