Author Topic: If condition..  (Read 2548 times)

0 Members and 1 Guest are viewing this topic.

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
If condition..
« on: August 22, 2007, 08:23:10 AM »
Hi,

i need to know if i can add some condition for the new additional field, like

{if new_filed1}CONTENT 1{else /}CONTENT 2{if}

I need to know if we can add some condition like above in the templates? If yes, what is the exact condition string?

Thanks you for the help :)

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: If condition..
« Reply #1 on: August 22, 2007, 08:49:17 AM »
... try this in your template ...
{if new_field1}content1{endif new_field1}{ifno new_field1}content2{endifno new_field1}
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: If condition..
« Reply #2 on: August 22, 2007, 09:40:17 AM »
Thank you mawenzi, working fine  :D