Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Syntax Notes

Reserved keywords

Tag
if
then
else
condition=
  • The boolean expression is evaluated for determining the path to take for execution.
  • If the boolean expression yields true, control is transferred to the first embedded statement. When and if control reaches the end point of that statement, control is transferred to the end point of the if statement.
  • If the boolean expression yields false and if an else part if present, control is transferred to the second embedded statement. When and if control reaches the end point of that statement, control is transferred to the end point of the if statement.
  • If the boolean expression yields false and if an else part if not present, control is transferred to the end point of the if statement.
  • if statements can be nested.

...

Code Block
languagexml
themeEmacs
titleExamples of IF Statements
<!-- Combining number comparsion with non number comparison -->
<!-- Note here: count is a XPath function. This menthod essentially find number of Result Elements  -->
<!-- Note that CPUUtilization and MemoryUtilitzation must return boolean -->
<If condition="[:/boolean('[:$LocalData.EventResponseMonitorData.Find/count(Result) ne 0:]'  
                and ('[:$ProcessData.CPUUtilization:]' 
                lt '[:$ProcessData.MemoryUtilization:]')):]">
	<Then>
	</Then>
</If>

...