Quote:
Originally Posted by emath
now i dont get an error though this if :
<vb:if condition="$diffPrev['bool']=true"> 555 </vb:if>
always gives true (even if in the last URL didnt have "pitronot" in it)
|
You need to use == instead of = (or don't compare it to true at all, since it's a boolean).
Quote:
and this : {vb:raw $diffPrev.bool} gives nothing .
|
You don't need the $ there.
Quote:
btw, why do i need to preRegister the variable if its a hook ?
|
Basically you need to preregister unless you're rendering your own template, in which case you can use register() when you're doing the rendering.