PDA

View Full Version : About conditions


Sir_Rai
11-20-2014, 03:02 PM
Hi everyone, Im new programming in vBulletin and I wanted to ask how to build proper conditions.

I have this code:
<INPUT TYPE="RADIO" NAME="response" VALUE="{vb:var value}" {vb:raw disabled} {vb:raw checked}> {vb:raw text}<br/>

How can I check in a <vb:if> condition the "vb:var value" content?

For example this is not working properly:

<vb:if condition="$value" != "specialWord">

<INPUT TYPE="RADIO" NAME="response" VALUE="{vb:var value}" {vb:raw disabled} {vb:raw checked}> {vb:raw text}<br/>

</vb:if>

How can I build this condition?

vBNinja
11-20-2014, 03:38 PM
<vb:if condition="$var = 'mystring'"></vb:if>