[ Up To iView 5 Web Interface ]

Using *EXPRESSION in Virtual Folders

Using the *EXPRESSION rule type, you may key up to 1024 characters of valid Php code in the 'Comparison Value' field. iView 5 will feed this string to the Php eval() function and return its value.

Examples:

if( trim( $fieldValue ) == “Able Anderson” ) return TRUE; else return FALSE;
$u_firstChar = substr( trim( $fieldValue ), 0, 1 );
if( $u_firstChar == 'C' || $u_firstChar == 'D' ) return TRUE; else return FALSE;

A rules specification for the above would look thus:

For more information see http://us.php.net/manual/en/function.eval.php

The ability to paste any Php code into this field is a glaring security and data integrity issue and administration of Virtual Folders should be restricted as appropriate.


[ Up To iView 5 Web Interface ]