From 549069762ccc35352186eb4fe1922883a0c4f213 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Jan 2012 23:50:00 -0700 Subject: Return seems to be fixed. --- test.stage | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'test.stage') diff --git a/test.stage b/test.stage index 42529af..b963b2b 100644 --- a/test.stage +++ b/test.stage @@ -13,13 +13,32 @@ global } } +function subfunction() +{ + if true then + { + return(); + } + display("subfunction()"); +} + +function hello() +{ + if true == true then + { + subfunction(); + display("Yeah!"); + return(); + } + display("hello()"); +} + situation <> { setup { - global.stuff = {'count': 1}; - global.stuff['count'] += 5; - display( global.stuff['count'] ); + hello(); + display("situation"); exit(); } -- cgit v1.2.3