Ultimate Database

Printer Friendly Page

Login

Condition

{COND(Clause, Value)}

The condition tag allows whole areas of html to be displayed only if a particular clause is true or false.

Start the html area with {COND(clause, value)} and finish with {/COND}.
You can add a {ELSE} in the middle if required.

Clause Parameter True when
USER Level User access level is at least 'Level'
PAGE Page ID Page = Page ID
PPAGE Page ID Previous Page = Page ID
SIMP The pages is being displayed in simple form
EMAIL The page is being emailed
PRINT The page is being printed
SIMP OR PRINT Either SIMP or PRINT is true
EMAIL OR PRINT Either EMAIL or PRINT is true
SIMP OR EMAIL Either SIMP or EMAIL is true
EMPTY Value 'Value' is empty
FIRST First time the user visits the page
COND_VAR1 Value Conditional Variable 1 = 'Value'
COND_VAR2 Value Conditional Variable 2 = 'Value'
TRUE Always
FALSE Never
Rel ID Obj ID There is a relationship from the current object (of the type specified by 'Rel ID') to the 'Obj ID' object

If yoy insert an exclamation mark infront of the clause then the condition will be true if the clause is not met.

You can use specil variables in any part of the condition but if you want the variables to be evalulated before the condition is checked then you need to use lower case {cond(x)}, {else}, {/cond}.

 Useful Links

Google

Bing

W3 Schools

ebay

play.com

amazon.co.uk

DELL

BBC

Rain Today

1and1