Author Topic: IF-ELSE in templates  (Read 2614 times)

0 Members and 1 Guest are viewing this topic.

Offline maki

  • Pre-Newbie
  • Posts: 2
    • View Profile
IF-ELSE in templates
« on: February 10, 2007, 11:02:48 AM »
Hello, I would like to know if an if-else sentence can be done.

there is some form to do the following thing?: {if variable} X {else} Y {endif variable}

Thanx and sorry my english.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: IF-ELSE in templates
« Reply #1 on: February 10, 2007, 12:03:55 PM »
... possible is :  {if variable} XXXX {endif variable}{ifno variable} YYYY {endifno variable}
... e.g. ...
Code: [Select]
{if random_image}{random_image}{endif random_image}{ifno random_image}No random Image{endifno random_image}
... or this ...
Code: [Select]
{if user_loggedout} XXXX {endif user_loggedout}{if user_loggedin} YYYY {endif user_loggedin}

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) ...