Including /excluding an include statement based on the value of a variable

Arctic Fire

New Member
On an index page, I have this:\[code\] include "commentformonoff.php";\[/code\]I would like to modify it so that this inclusion is only done if a variable \[code\]$countcomments\[/code\] is equal to 99 or less. If \[code\]$countcomments\[/code\] is equal to 100 or more, I would like to echo a message that says "Comments closed."How can I do this?Thanks in advance,John
 
Back
Top