OK. I still can't duplicate. Question: are you running any other macros in the same session of GSAK? If you close and restart GSAK, and run just the FiveNewLogs macro, do you still get the error? I ask because $p_run is a persistent variable that lasts for the current session of GSAK (i.e. until you close GSAK) and there is a remote (very unlikely) possibility that some other macro is using the same persistent variable and casting it as Boolean vs. numeric.
Regardless, I removed the varaible declarations when I updated to version 3.0 because the macro was slimmed down considerably, I didn't feel they were needed and I was trying to simplify the code as much as possible. We are now running into a variable typing problem that I should be able to cure by again declaring the variables. I'll reinstate variable declarations in the next release (probably release in 6-7 hours) and see if that cures the problem for you.
Regardless, I removed the varaible declarations when I updated to version 3.0 because the macro was slimmed down considerably, I didn't feel they were needed and I was trying to simplify the code as much as possible. We are now running into a variable typing problem that I should be able to cure by again declaring the variables. I'll reinstate variable declarations in the next release (probably release in 6-7 hours) and see if that cures the problem for you.