PDA

View Full Version : Converting one line of code from vb3.7 to vb4


Azonaco
02-03-2010, 07:33 PM
Can someone help me rewrite the following code from vb3.7 to vb4?

VB3.7: <if condition="$post[fieldX]"><img src="images/misc/$post[fieldX].gif"></if>

VB4: ?

Lynne
02-03-2010, 08:12 PM
<vb:if condition="$post[fieldX]"><img src="images/misc/{vb:var post.fieldX}.gif"></vb:if>

Azonaco
02-04-2010, 01:35 AM
<vb:if condition="$post[fieldX]"><img src="images/misc/{vb:var post.fieldX}.gif"></vb:if>

Lynne, can't thank you enough for all you do here. Code works great.