According to my pagination scheme, I have about 20 comments on each PHP page. I have use an If else statement on each comment to check whether the user logged in or not. So, there are about 20 IF ELSE Statements.
I don't know how much time and processing an IF ELSE statement takes. How much expensive an IF ELSE Statement could be. If I have used 20 IF ELSE statements of like this
IF ($user_logged_in) {
// do this
} ELSE {
// do this
}
Note: $user_logged_in is not a function, it is boolean variable that is set on the start of the page.
So, How much time consuming it could be for my webpage in this scenario??