#! /usr/local/bin/ehtml
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.
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.