// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function foo takes string p_msg, string p_pos returns string local integer i set p_pos = "" set i = 1 loop exitwhen i > 3 set p_pos = p_pos + "x" set i = i + 1 endloop return p_msg + p_pos endfunction function init_test takes nothing returns nothing if foo("a", "b") == "axxx" then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction