// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer array test_x_a integer foo_return_a=0 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function foo takes integer t_a returns integer if t_a > 5 then set foo_return_a = 2 return foo_return_a endif set foo_return_a = 3 return foo_return_a endfunction function init_test takes nothing returns nothing local integer tuple_temp = 8 local integer a_a local integer tuple_temp_1 set test_x_a[0] = tuple_temp set tuple_temp_1 = foo(test_x_a[0]) set a_a = tuple_temp_1 if a_a == 2 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction