FI allows you to use variables and conditional expressions
as well.
You can for example check which browser somebody is using
and output browser-specific HTML code:
<!--getenv HTTP_USER_AGENT-->
<!--ifsubstr $exec_result Mozilla-->
Hey, you are using NetScape!<p>
<!--endif-->
You can perform a simple query and check the results:
<!--sql database select * from table where user='$username'-->
<!--ifless $numentries 1-->
Sorry, that record does not exist<p>
<!--endif exit-->
Welcome <!--$user-->!<p>
You have <!--$index:0--> credits left in your account.<p>
It also has a handy "include" command that lets you include
other HTML files. Essential for large systems that need
header and footer elements.
ie.
<!--include /text/footer.html-->
Online documentation is available at: http://www.io.org/~rasmus
--
Rasmus Lerdorf
ras...@io.org
http://www.io.org/~rasmus
>ie.
><!--include /text/footer.html-->
This looks very familiar.
-Mark West
><!--getenv HTTP_USER_AGENT-->
><!--ifsubstr $exec_result Mozilla-->
>Hey, you are using NetScape!<p>
><!--endif-->
Why do people put commands in comments? Since the files are useless
without preprocessing it's a bit of pain with no advantage.