📄️ Comments
It is a very good idea when writing IsisScripts to include explanations of what is happening.\\
📄️ Parameters
Within the task, you need to specify some parameters to tell WXIS the details of the task. This is done using the tags ` and `. Each parameter has a name attribute and a value specified between the tags, e.g.
📄️ Tasks
The script can perform one or more tasks. Each task starts with a ` tag and ends with a ` tag.
📄️ Loops
Usually in a task relating to a database or list you want to do the same thing to one of a set of records, e.g. display each record retrieved by a search or each term in a section of the inverted file.
📄️ Flow Control
It is a frequent requirement in IsisScripts, as in other computer programs, to take different actions depending on the outcome of some test (a "condition"). For instance, we may want to give the user a choice of two methods of searching (a) by entering a Boolean expression or (b) by selecting from the index file.\\
📄️ CIPAR and Paths
The example in /abcd-advanced/isisscript/guides/loops.md assumes that the CDS database is held in the same directory as the Isis script. Usually this is not desirable – you want to keep the database(s) in one directory and the scripts in the /cgi-bin directory.
📄️ Gizmo (String Manipulation)
A useful parameter is gizmo. (=> \). It makes a reference to a gizmo database.
📄️ Content Type
Any CGI program must tell the server what kind of output it is trying to send back to the client. Normally this will be an HTML document, i.e. text/html (though it could be e.g. text/plain).