Hi all! I'm having this problem that's been bugging me for a whole week.
Apparently, when I run my page's code in preview mode, it works just fine, there's nothing wrong with it. But when I run it in the published site, the if/else statement doesn't work. In fact, they both execute at the same time! (eg. if a = 1, do this, else do that, in my published site, it does both!!!)
If my code doesn't have any .update(), then everything's fine. But as soon as I insert an .update() function, it just goes wild...
Any help would be appreciated!