The Official EHTML Page - Code ELSEIF

To Control The Flow Of Your Page


The <ELSEIF> code under EHTML, when combined with <IF>, is used to selectively choose whether or not to show a certain portion of your page, known as a block, based on where the client is located on the Internet. A block is considered anything between the <ELSEIF> and <ENDIF> codes.

The <ELSEIF> code works on the principle of Internet "domains". A domain is the name of the machine and/or network of machines connected to the Internet. For instance, the domain name of Vaxxine Computer Systems is "vaxxine.com" and the main server in that domain is "alpha.vaxxine.com".

The <ELSEIF> code supports a single "wildcard" to qualify more than one domain name at the same time. This wildcard is the asterisk (*). As an example, the domain name of "alpha.vaxxine.com" would apply only to the main server at Vaxxine, while "*.vaxxine.com" would apply to any connection made through Vaxxine.


Attributes

%location%
Specifies that we are currently checking for a domain name in order to possibly modify the flow of our page.
==
Specifies that we are checking for the equality (equal to) of the domain where the current client is loading from to domain.
!=
Specifies that we are checking for the inequality (not equal to) of the domain where the current client is loading from to domain.
domain
The name of the domain that we are comparing to. A wildcard character of asterisk (*) can be used for partial matches.


Setup

The <ELSEIF> code always has the basic format of:

 <IF %location% == domain>  - or - 
 <IF %location% != domain> 
Some EHTML/HTML codes...
<ELSEIF %location% == domain> - or - <ELSEIF %location% != domain>
Some EHTML/HTML codes...
<ENDIF>

In the first case the <ELSEIF> is used to confirm that the user loading the page is connected from a certain site. In the second case the <ELSEIF> is used to confirm that the user is not connecting from a certain site.


[ EHTML Overview | EHTML Setup | EHTML Codes | EHTML Problems ]
Please Report Problems With This Page To: Vaxxine Web Development, vaxxweb@vaxxine.com


Original EHTML documentation by RK. EHTML originally designed by JP, updates by RK.