hasFeature

Returns 1 if given feature is supported, 0 if not (or unknown). The syntax is:

	hasFeature(feature)

where feature is one of the following varchar tokens:

  • RE2 For RE2 regular expression support in REX

This function is typically used in Vortex scripts to test if a feature is supported with the current version of Texis, and if not, to work around that fact if possible. For example:

     <if hasFeature( "RE2" ) = 1>
       ... proceed with RE2 expressions ...
     <else>
       ... use REX instead ...
     </if>

Note that in a Vortex script that does not support hasFeature() itself, such an <if> statement will still compile and run, but will be false (with an error message).

Added in version 7.06.1481662000 20161213. Some feature tokens were added in later versions.


Copyright © Thunderstone Software     Last updated: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.