Please enable JavaScript to view this site.

iService Forms User Guide

Navigation: Form Commands > $IF

$IF -topictree

Scroll Prev Top Next More

The $If -topictree parameter is used to generate a list of Find Answers topics in a tree format only if additional topics exist. It is embedded within a $Repeat -topictree(findanswers)$ command to produce a tree structure of topics, and if no sub-level topics exist it will avoid blank lines.

 

Example:

$repeat -topictree(findanswer)$

  $value -topic(name)$

  $value -topic(messagecount)$

 

  $if -topictree(findanswer)$

    $repeat -topictree(findanswer)$

      $value -topic(name)$

      $value -topic(messagecount)$

    $endrepeat$

  $endif$

 

$endrepeat$