diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 17:03:20 -0700 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 17:03:20 -0700 |
| commit | f404d991aa53ed81855e51b597bfe1d5c2288b42 (patch) | |
| tree | d2ce081cc722eccc089591c63ea0a345b4b4701c /test.stage | |
| parent | 1bd7f709f5217b248fcb3a4c7be2eeca84fec795 (diff) | |
| download | stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.gz stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.bz2 stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.xz stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.zip | |
Most operators work, as well as if/then/else.
Loops should be very easy, but we don't have lists working yet, next is
scope selection.
Diffstat (limited to 'test.stage')
| -rw-r--r-- | test.stage | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -18,8 +18,19 @@ situation <<start>> | |||
| 18 | setup | 18 | setup |
| 19 | { | 19 | { |
| 20 | name = "Bob"; | 20 | name = "Bob"; |
| 21 | name += " The Man"; | ||
| 21 | display("This is the setup phase for start, " + name); | 22 | display("This is the setup phase for start, " + name); |
| 22 | display("???"); | 23 | display( 5 == 6 ); |
| 24 | display( 5 == 5 ); | ||
| 25 | |||
| 26 | if name == "Bob The Man" then | ||
| 27 | { | ||
| 28 | display("You are bob"); | ||
| 29 | } | ||
| 30 | else | ||
| 31 | { | ||
| 32 | display("You are not bob"); | ||
| 33 | } | ||
| 23 | } | 34 | } |
| 24 | 35 | ||
| 25 | enter | 36 | enter |
