docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 6.1Web Developer ManualIf Tags
Copyright  2019, 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 internal-exists>
<if ip>
<if kerberos-auth>
<if language>
<if match>
<if Match>
<if module>
<if pragma>
<if prestate>
<if recaptcha-verify>
<if referrer>
<if scope>
<if sizeof>
<if supports>
<if time>
<if true>
<if type-from-data>
<if type-from-filename>
<if user>
<if variable>
<if Variable>
<if variable-exists>

<if type-from-filename></if>

Provided by module: Tags: RXML tags

Compares if the variable contains a path that match the content type pattern.

This is an Eval plugin.

Related tags: <if#type-from-data>, <cimg>, <guess-content-type>, <emit#dir>.

See a lengthier example under <if#type-from-data>.

<set variable='var.path' value='/a-path/to somthing/wordfile.doc'/> <if type-from-filename='var.path is application/msword'> It is a word document. </if> <else> It is other document type that I do not want. </else>
It is a word document.