
sql:ifnull( $expr1 as item()*, $expr2 as item()* ) as item()*
If the first expression is NULL, then the value of the second expression is returned. If not null, the first expression is returned.
| Parameters | |
|---|---|
| expr1 | First expression to be evaluated. | 
| expr2 | Second expression to be evaluated. | 
sql:ifnull((),1) => 1