docs.roxen.comBack to normal mode
DocsRoxenWebServer 6.1Web Developer ManualIf Tags
Copyright © 2021, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<if exists></if>

Provided by module: Tags: RXML tags

Returns true if the named page is viewable. A nonviewable page is e.g. a file that matches the internal files patterns in the filesystem module. If the path does not begin with /, it is assumed to be a URL relative to the directory containing the page with the <if>-statement. 'Magic' files like /internal-roxen-unit will evaluate as true. This is a State plugin.

To check if a path supplied via e.g. a form exists you could combine the -exists plugin with e.g. the sizeof-plugin:

<if exists='&form.path;' and='' sizeof='form.path > 0'> The path &form.path; exists in the virtual filesystem. </if>

Attributes

exists="path"

Choose what path in the virtual filesystem to test.