I am so perplexed. Such a simple thing. It just won't "elseif"
All I need is this: <?php if ( $pscorelabel >= 21 ) : ?>
does something to do this: <?php if ( $pscorelabel >= 42 ) : ?>
does something else.
I have attached the code snippet. PLEASE, I'm such a noob and need your help. Any help will be greatly appreciated.
<?php if ( $showscore == '1' ) : ?>
<div class="ipt_fsqm_up_number">
<h6>
<?php $ui->print_icon_by_class( 'quill', false ); ?>
<?php printf( __( '%2$s%% Average %1$s', 'ipt_fsqm' ), $scorelabel, number_format_i18n( ($avg_score * 100), 0 ) ); ?>
</h6>
<?php endif; ?>
<?php if ( $pscorelabel >= 21 ) : ?> <div class="ipt_fsqm_up_meta">
<h6><?php $ui->print_icon_by_class( 'quill', false ); ?>
<?php printf( __( '%2$s Total CPD Points %1$s', 'ipt_fsqm' ), $finallabel, number_format_i18n( ($pscorelabel * 1), 0 ) ); ?>
</h6>
<?php elseif ( $pscorelabel >= 42 ) : ?>
<div class="ipt_fsqm_up_meta">
<h6><?php $ui->print_icon_by_class( 'quill', false ); ?>
<?php printf( __( '%2$s Total CPD Points %1$s', 'ipt_fsqm' ), $finallabel, number_format_i18n( $finallabel = 6, 0 ) ); ?>
</h6>
<?php endif; ?>