PDA

View Full Version : Do conditionals automatically mean more queries?


memobug
Fri 6th May '05, 4:20am
If I add conditionals to the postbit template to check and see if it's a certain userid, or if there are a certain number of posts in the thread, before providing the quickreply box, does that conditional necessarily add queries? Or is it a case of it depends..?

Regards,

Matt

Zachery
Fri 6th May '05, 4:56am
Conditionals do not, or at least rarely, ever increase querys, they are just simple if statments

shovel
Fri 6th May '05, 10:57am
A conditional addition such as that will never add queries. They simply reference from former queries in that script.