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

<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.