Code "If" or "Switch?"
Posted: October 24th, 2010, 9:55 pm
Would this work?
- Code: Select all
<?php
switch (current_user_is($i) {
case s2member_level4:
Some premium content for Level 4 Members.
break;
case s2member_level3:
Some premium content for Level 3 Members.
break;
case s2member_level2:
Some premium content for Level 2 Members.
break;
case s2member_level1:
Some premium content for Level 1 Members.
break;
case s2member_level0:
Some content for Free Subscribers.
break;
default:
Some public content.;
} ?>