How do I display excerpts for certain Membership levels...

How do I display excerpts for certain Membership levels and Full Content for another membership level, at the code base of my theme.

ie. (i'm not a coder, but here is a bad php pseudo code example of what I am trying to do with the membership plugin)

<?php if ( level_id=1 ) : ?>
<?php the_excerpt(); ?>
<?php endif; ?>

<?php if ( level_id=5 ) : ?>
<?php the_content(); ?>
<?php endif; ?>