// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer array test_x_a integer foo_return_a=0 endglobals native testSuccess takes nothing returns nothing 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 initGlobals takes nothing returns nothing endfunction function main takes nothing returns nothing call initGlobals() set test_x_a[0] = 8 if foo(test_x_a[0]) == 2 then call testSuccess() endif endfunction function config takes nothing returns nothing endfunction