docs.roxen.comView this page in a printer friendly mode
DocsRoxen2.1Web Site Creator ManualIf Tags
Copyright İ 2001, Roxen Internet Software
Suggestions, comments & compliments


<if accept>
<if client>
<if clientvar>
<if config>
<if cookie>
<if date>
<if defined>
<if domain>
<if exists>
<if expr>
<if false>
<if group>
<if ip>
<if language>
<if match>
<if pragma>
<if prestate>
<if referrer>
<if sizeof>
<if supports>
<if time>
<if true>
<if user>
<if variable>

If Tags

If-tags make it possible to make dynamic pages that show different content based on conditions. Authenticated users can get confidential information and pages can be optimized for all browsers. They also makes it possible to program web applications in RXML, without using any programming language.

Learn how to use the if tags from scratch in our If tags tutorial.

Name Description Needed Module 
<else>   Show the contents if the previous <if> tag didn't, or if there was a <false> tag above.   RXML 2 parser  
<elseif>   Same as the <if>, but it will only evaluate if the previous <if> returned false.   RXML 2 parser  
<false>   Internal tag used to set the return value of If Tags.   RXML 2 parser  
<if accept>   Returns true if the browser accepts certain content types as specified by it's Accept-header, for example image/jpeg or text/html.   RXML 2 parser  
<if client>   Compares the user agent string with a pattern.   RXML 2 parser  
<if clientvar>   Evaluates expressions with client specific values.   RXML 2 parser  
<if config>   Has the config been set by use of the <aconf> tag?   RXML 2 parser  
<if cookie>   Does the cookie exist and if a value is given, does it contain that value?   RXML 2 parser  
<if date>   Is the date yyyymmdd?   RXML 2 parser  
<if defined>   Tests if a certain RXML define is defined by use of the <define> tag.   RXML 2 parser  
<if domain>   Does the user's computer's DNS name match any of the patterns?   RXML 2 parser  
<if exists>   Returns true if the file path exists.   RXML 2 parser  
<if expr>   This plugin evaluates expressions.   RXML 2 tags  
<if false>   This will always be true if the truth value is set to be false.   RXML 2 parser  
<if group>   Checks if the current user is a member of the group according the groupfile.   RXML 2 parser  
<if ip>   Does the users computers IP address match any of the patterns?   RXML 2 parser  
<if language>   Does the client prefer one of the languages listed, as specified by the Accept-Language header?   RXML 2 parser  
<if match>   Evaluates patterns.   RXML 2 parser  
<if pragma>   Compares the HTTP header pragma with a string.   RXML 2 parser  
<if prestate>   Are all of the specified prestate options present in the URL?   RXML 2 parser  
<if referrer>   Does the referrer header match any of the patterns?   RXML 2 parser  
<if sizeof>   Compares the size of a variable with a number.   RXML 2 parser  
<if supports>   Does the browser support this feature?   RXML 2 parser  
<if time>   Is the time hhmm?   RXML 2 parser  
<if true>   This will always be true if the truth value is set to be true.   RXML 2 parser  
<if user>   Has the user been authenticated as one of these users?   RXML 2 parser  
<if variable>   Does the variable exist and, optionally, does it's content match the pattern?   RXML 2 parser  
<if>   <if> is used to conditionally show its contents.   RXML 2 parser  
<then>   Shows its content if the truth value is true.   RXML 2 parser  
<true>   An internal tag used to set the return value of If Tags.   RXML 2 parser