Thats due to your continue not resetting the g_test2 cvar to an empty string, thus locking the loop