Integrate Software AG Products Using Digital Event Services : MashZone NextGen Help : Appendix : Legacy Presto components : Mashables and Mashups : Mashups in EMML : Writing Mashups in EMML : Controlling Mashup Processing Flow : <if>
<if>
This conditional statement follows the well-known if-elseif-else control pattern to processes specific children statements based on one or more conditions. Both <elseif> and <else> are optional.
You can use most EMML statements within <if>, <elseif> or <else>. You can also use <break> within these statements if they are descendants of a looping statement to forceably stop the ancestor loop processing.
You define the conditions that must be matched for each section of this statement to be processed as XPath 2.0 expressions. For examples, see <if> Basics, Adding <elseif> or <else> or Breaking. See also Working Samples for information on sample mashups that use this statement.
Can Contain
( ( Statements Group | ( Variables Group ) | ( presto:beginTransaction | presto:commitTransaction | presto:rollbackTransaction ) | ( ( macro:custom-macro-name | any element in a non-EMML namespace )* ) | ( break ) | ( variables ) )+ , elseif* , else? )
Allowed In
mashup | catch | else | elseif | for | foreach | if | macro | operation | sequence | try | while
Attributes
Name
Required
Description
condition
yes
An expression for the initial condition to test for the <if> statement. If this condition is matched, the statements that are direct children of <if> (not including <elseif> or <else>) are processed.
Copyright © 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback