// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function init_test takes nothing returns nothing local string p_msg = "a" local string p_pos = "b" local string msg = p_msg local string pos = p_pos local string s local integer i set pos = msg set msg = "" set i = 1 loop exitwhen i > 3 set msg = msg + "x" set i = i + 1 endloop set s = pos + msg if s == "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