> Main > Products and Services > Purchase > Company
English / Russian

Documentation

CNCat 4.3.3 User Manual

© "CN-Software" Ltd. 2002-2009
support@cn-software.com
www.cn-software.com
Previous | Table of Contents  | Next

Conditions

Format 1: {IF condition} HTML-code {ENDIF}

Format 2: {IF condition} HTML-code {ELSE} HTML-code {ENDIF}

Example:

{IF $CNCAT[page][cat_item_count]>0}

       {$CNCAT[lang][items_in_category]}:        

       <strong>{$CNCAT[page][cat_item_count]}</strong>

{ELSE}

       {$CNCAT[lang][no_items_in_category]}

{ENDIF}

In this example the following condition is checked: if a number of links on a page is more than 0 then the number should be displayed; otherwise a message notifying about links absence should be displayed.

It is possible to use variables and constants in conditions (a number of a line in single inverted commas).

The following operators are supported:

== != > < >= <= || && %  + - * /

Function calls are supported (see below).

Brackets are not supported.


Previous | Table of Contents  | Next