/[svn]/linuxsampler/trunk/src/scriptvm/examples/if.txt
ViewVC logotype

Contents of /linuxsampler/trunk/src/scriptvm/examples/if.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2581 - (show annotations) (download)
Fri May 30 12:48:05 2014 UTC (5 years ago) by schoenebeck
File MIME type: text/plain
File size: 357 byte(s)
* (WIP) Implemented parser and VM for upcoming new real-time instrument
  script support. It needs yet to be integrated into the sampler's
  sampler engines. You can toy around for now with the command line tool
  "ls_instr_script" and i.e. examples showing the core language features
  under src/scriptvm/examples/.
* Bumped version (1.0.0.svn41).

1 on init
2 declare $foo := 1
3
4 if ($foo)
5 message("if works.")
6 end if
7
8 $foo := 0
9
10 if ($foo)
11 message("if does not work!")
12 end if
13
14 if ($foo)
15 message("if else does not work!")
16 else
17 message("if else works.")
18 end if
19
20 $foo := 1
21
22 if ($foo)
23 message("if else works.")
24 else
25 message("if else does not work!")
26 end if
27 end on

  ViewVC Help
Powered by ViewVC