Search code examples
phpif-statementvbulletin

If VB condition with or


I got an if like:

<vb:if condition="$channel['nodeid'] != 16">
        <tr><td>Something</td></tr>
</vb:if>

but i need it to also check for 20 so it must be something like:

if != 16 || 20

how do i write that


Solution

  • Found it

    <vb:if condition="!in_array($channel['nodeid'], array(16,20))">
            <tr><td>Something</td></tr>
    </vb:if>