Try using this:
// Get the 'WpForest_soft' custom field value.
$text = get_post_meta( $post->ID, 'WpForest_soft', true );
// Print the value and surrounding markup only if the value tests true.
if ( $text )
printf( '<tr><td class="attr-name">%s</td><td class="attr-detail">%s</td></tr>', __( 'Software Version', 'WpForest' ), $text );
General Case
To do the above with any optional markup follow these steps.
1) Place the custom field value of in a variable. Use a relevant variable name.
// Get the 'WpForest_soft' custom field value.
$wpforest_soft = get_post_meta( $post->ID, 'WpForest_soft', true );
2) Write a PHP conditional testing the value from step 1.
if ( $wpforest_soft ) {
}
3) Add your markup to that conditonal.
if ( $wpforest_soft ) {
?>
<a href="https://wordpress.stackexchange.com/questions/98389/<?php bloginfo("url'); ?>/theme-demo/<?php echo the_ID(); ?>" class="blue-btn right ml10 live-preview" target="_blank">Live Preview</a>
<a href="https://wordpress.stackexchange.com/questions/98389/<?php bloginfo("url'); ?>/theme-demo/<?php echo the_ID(); ?>" class="blue-btn right ml10 live-preview" target="_blank">Video Preview</a>
<a href="https://wordpress.stackexchange.com/questions/98389/<?php bloginfo("url'); ?>/screenshots/<?php echo the_ID(); ?>" class="blue-btn right ml10 screenshots" target="_blank">Screenshots</a>
<?php
}
4) (Optional) Avoid jumping in and out of PHP and Markup. The printf() PHP function can help.
if ( $wpforest_soft ) {
printf(
'<a href="https://wordpress.stackexchange.com/questions/98389/%1$s/theme-demo/%2$s" class="%3$s" target="_blank">Live Preview</a>' .
'<a href="https://wordpress.stackexchange.com/questions/98389/%1$s/theme-demo/%2$s" class="%3$s" target="_blank">Video Preview</a>' .
'<a href="%1$s/screenshots/%2$s" class="%4$s" target="_blank">Screenshots</a>',
get_bloginfo( 'url' ),
get_the_ID(),
'blue-btn right ml10 live-preview',
'blue-btn right ml10 screenshots'
);
}
Or just:
if ( $wpforest_soft )
printf(
'<a href="https://wordpress.stackexchange.com/questions/98389/%1$s/theme-demo/%2$s" class="%3$s" target="_blank">Live Preview</a>' .
'<a href="https://wordpress.stackexchange.com/questions/98389/%1$s/theme-demo/%2$s" class="%3$s" target="_blank">Video Preview</a>' .
'<a href="%1$s/screenshots/%2$s" class="%4$s" target="_blank">Screenshots</a>',
get_bloginfo( 'url' ),
get_the_ID(),
'blue-btn right ml10 live-preview',
'blue-btn right ml10 screenshots'
);