Skip to main content
Windward

Basic Tag Concepts

Overview

This page is meant to chronicle how to use basic Windward tags effectively.

Resolution

1)      When you specify an IF tag it will only return true or false as output.  This is the goal to evaluate if an expression is true or if an expression is false.  You will not see any data shown.  Your IF statement can contain multiple conditions to test for the values of true or false.  Always make sure you use SELECT instead of TEST in the tag editor next to the select box.

 

2)      You will have to put an OUT tag after any IF tag.  When the IF tag (from earlier) evaluates TRUE it will go to the next tag (the OUT tag with the node you want to output) and evaluate, therefore printing out the node you specified in the OUT tag.

 

 

3)      If you want to print multiple items you need to use a forEach tag.  In the forEach tag you need to select the top most node that contains all the items underneath that you wish to access. 

 

ie.  /root/node1 and /root/node2, you would select /root

 

You then need to give the forEach loop a variable name so you can refer to it by that variable name to access other items.

 

ie.  forEach variable name is VAR1, to access you use ${VAR1}.  To access sub nodes you would use ${VAR1}/node1

 

You then need to place an END foreach tag at the end of where you want the looping to stop.  This can be 1 paragraph or even at the end of the page  if you want whole pages to be replicated.

 

You can nest IF and OUT tags inside this forEach loop so essentially combining concepts from #1 and #2 above.

  • Was this article helpful?