PDA

View Full Version : Correct conditionals for ...


TimberFloorAu
01-03-2010, 06:13 AM
Want to add in postbit signature,

<strong>A British Expat in $post[field2]</strong>

This code worked in 3.8

But is different in vb4 , can you tell me what correct code is please

--------------- Added 1262506873 at 1262506873 ---------------

Would this be correct:

<vb:if condition="$post['field2']"><dt>{vb:rawphrase field2}</dt> <dd>A British Expat in {vb:raw post.field2}</dd></vb:if>

Seems to Work

Lynne
01-03-2010, 02:57 PM
That looks correct.

(Oh, now I see you say it worked, so good!)