why doesnt this work
IDK.
You aren't waiting for the function to complete so it won't return anything.
how do i make it wait
You don't, you just have to do a some funky stuff in both snap and javascript to get it to work.
but if you replace return with document.write then that works. can you make return work
You can do something like this: TI-84 Emulator - #34 by ego-lay_atman-bay
no. i think i figured it out. the code was supposed to report every change in battery. so mabey thats preventing it from reporting
Did you see the rest of the script? Setting the result to a variable, the wait block, and the if check is important.
i tried. it wasnt working for me
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.