Ok, this may seem obvious or easy, but I've been trying to get it working all day and I cant work it out. I've tried searching, but it seems a difficult thing to search for.

What I want, is when a variable (%quietbot) is equal to 1, for the entire rest of one script file to be ignored (Only one script file). When the variable is equal to 0, I want the script to go through as normal.

I'd apreciate any help.

Thanks