docs.roxen.com
main | demo | docs
download | community | pike
© 2000 Roxen Internet Software
Suggestions, Comments or Complaints
manuals@roxen.com

DocsRoxen2.0Web Site Creator ManualIf tags
   

  • <else>
  • <elseif>
  • <false>
  • <if>
  • <then>
  • <true>
  • <if accept>
  • <if client>
  • <if clientvar>
  • <if config>
  • <if cookie>
  • <if date>
  • <if domain>
  • <if exists>
  • <if expr>
  • <if false>
  • <if group>
  • <if ip>
  • <if language>
  • <if match>
  • <if ppoint>
  • <if pragma>
  • <if prestate>
  • <if referrer>
  • <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.

    The if tags are:

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