Changes between Version 14 and Version 15 of Doc/panc/dml/functions
- Timestamp:
- May 15, 2007, 2:33:49 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/panc/dml/functions
v14 v15 138 138 139 139 This function checks if the ”variable expression” (see delete function) corresponds to an existing 140 element. ''' Note that this function processes its argument in a non-standard way. The function only checks to see if the element identified by the variable expression exists. It does not check the actual value of the element. Consequently, this function will return true for any element including 'null' and 'undef' values.'''140 element. ''''Note that this function processes its argument in a non-standard way. The function only checks to see if the element identified by the variable expression exists. It does not check the actual value of the element. Consequently, this function will return true for any element including 'null' and 'undef' values.'''' 141 141 142 142 === exists( path:string ) : boolean === 143 143 144 This function checks if the path corresponds to an existing element. ''' Note that if the argument is a variable expression it will be interpreted as a call to exists( arg:variable) and will not read the value of the variable.''' For example, the following DML code:144 This function checks if the path corresponds to an existing element. ''''Note that if the argument is a variable expression it will be interpreted as a call to exists( arg:variable) and will not read the value of the variable.'''' For example, the following DML code: 145 145 {{{ 146 146 v = '/some/absolute/path'; … … 156 156 === exists( template:string ) : boolean === 157 157 158 This function checks if the given template exists. ''' Note that this function processes its arguments in a non-standard way. The argument must be a bare template name; the template must not be specified by a string.'''158 This function checks if the given template exists. ''''Note that this function processes its arguments in a non-standard way. The argument must be a bare template name; the template must not be specified by a string.'''' 159 159 160 160 === first( arg:resource, key:identifier, value:identifier ) : boolean ===