this works if it is the only code in the bot set(#num1, 50, "Global") set(#perpage, 20, "Global") set(#loopit, $eval("var worknum = {#num1}/{#perpage}; worknumrnd = Math.floor(worknum); worknumrnd"), "Global") but if it is not the only code in the bot and when run it opens the about:blank page in the bot window but does not change the variable. anyone know what's happening? thanks