What extended SSI elements are available?

flow control elements much like the ones used in
programming languages. With flow control, you can create more sophisticated SSI scripts.


There are four flow control elements:

<!--#if expr="test-condition"-->
<!--#elif expr="test-condition"-->
<!--#else-->
<!--#endif-->

The test-condition is one of the following:

















Test Condition Description
string True if the string is not empty
sring1=string2 True if string1 matches string2
string1!=string2 True if string1 does not match string2
(test-condition) True if test-condition is true
  • 59 Users Found This Useful
Was this answer helpful?

Related Articles

Instructions using SSI

Server Side Includes - SSISSI works in conjunction with a web page usually with the .shtml...

What are Server-Side Includes?

Server-side includes (SSIs) are simple, HTML-embedded directives that instruct the web server to...

How do I use SSI?

First you must create a page with a .shtml extension! Then SSI is easily implemented into your...

What directives are available?

  The include directive inserts the text of another document, specified either as a file...

What SSI environment variables available?

  DOCUMENT_NAME The filename of the current HTML document. For example: This file is...