The usage of {IF:} in templates [message #33956] |
Thu, 28 September 2006 19:22  |
Ernesto
 Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I want to use the template code {IF:} to do something like this:
{IF: ($obj->user_id="1")} Blah {ENDIF}
However, the above does not work as intended
Perhaps I cannot use the array thingy within the {IF:} and have to use {DEF:} first to define the grab from the array as a regular variable?
IE - If the user ID of the poster of a message is a special number I wish to output something different.
If anyone have any hints, that would be swell.
Ginnunga Gaming
[Updated on: Thu, 28 September 2006 19:30] Report message to a moderator
|
|
|
|