254 |
<p> |
<p> |
255 |
The left hand side's <code>??variable-name??</code> is an arbitrary name |
The left hand side's <code>??variable-name??</code> is an arbitrary name |
256 |
you can chose for your variable. That name might consist of English |
you can chose for your variable. That name might consist of English |
257 |
letters A to Z (lower and upper case) and the underscore character "<code>_</code>". |
letters A to Z (lower and upper case), digits (<code>0</code> to <code>9</code>), |
258 |
|
and the underscore character "<code>_</code>". |
259 |
Variable names must be unique. So you can neither declare several variables |
Variable names must be unique. So you can neither declare several variables |
260 |
with the same name, nor can you use a name for your variable that is |
with the same name, nor can you use a name for your variable that is |
261 |
already been reserved by <i>built-in variables</i>. |
already been reserved by <i>built-in variables</i>. |
772 |
@postfix := "nd" |
@postfix := "nd" |
773 |
case 3 |
case 3 |
774 |
@postfix := "rd" |
@postfix := "rd" |
775 |
end if |
end select |
776 |
|
|
777 |
message("This is the " & $numberOfNotes & @postfix & " note triggered so far.") |
message("This is the " & $numberOfNotes & @postfix & " note triggered so far.") |
778 |
end on |
end on |
813 |
case 3 |
case 3 |
814 |
message("Third note was triggered!") { Will never be printed ! } |
message("Third note was triggered!") { Will never be printed ! } |
815 |
exit |
exit |
816 |
end if |
end select |
817 |
|
|
818 |
message("Wow, already the " & $numberOfNotes & "th note triggered.") |
message("Wow, already the " & $numberOfNotes & "th note triggered.") |
819 |
end on |
end on |
852 |
case 1 to 99 |
case 1 to 99 |
853 |
message("Less than 100 notes triggered so far") |
message("Less than 100 notes triggered so far") |
854 |
exit |
exit |
855 |
end if |
end select |
856 |
|
|
857 |
message("Wow, already the " & $numberOfNotes & "th note triggered.") |
message("Wow, already the " & $numberOfNotes & "th note triggered.") |
858 |
end on |
end on |