Online Product Documentation >
Table of Contents >
IF blocks have a single input port, labeled
Flow port; and two result ports:
if then, and
You use IF blocks to compose
else XQuery expressions, such as the following:
if( $book/title ) then
This expression, for example, was composed by mapping
title element in the source document to the IF block's input port.
if then result port to the
Title element in the target structure.
if else result port to the
ISBN element in the target structure.
IF blocks create a structure if the
if then or
if else branches are true. These ports can be connected to the target schema; otherwise they can be connected to
Flow ports of FLWOR, function, and other IF blocks.