Program Implementers:

(insert:$this_incentive->(find:'company')); /iterate; ?>

Demand Response Programs

[var:'first_implementer' = true;] [var:'first_program' = true;] [var:'implementer_counter' = 1] [iterate: $incentives, var:'this_incentive'] [if: var:'first_implementer']

[$this_incentive->(find:'company')]

[if: var:'first_program']

[$this_incentive->(find:'programtitle')]


[var:'current_program' = $this_incentive->(find:'programtitle')] [/if] [var:'first_implementer' = false;] [output_none][++$implementer_counter][/output_none] [else: var:'current_implementer' != $this_incentive->(find:'company')]

[$this_incentive->(find:'company')]

[var:'current_program' = ''] [output_none][++$implementer_counter][/output_none] [/if] [if: var:'current_program' != $this_incentive->(find:'programtitle')]

[$this_incentive->(find:'programtitle')]


[/if]

[$this_incentive->(find:'description')]

[if: $this_incentive->(find:'incentivephone') != '']Phone: [$this_incentive->(find:'incentivephone')][else: $this_incentive->(find:'programphone') != '']Phone: [$this_incentive->(find:'programphone')][/if]Web: [if: $this_incentive->(find:'incentiveurl') != '']Incentive details online[else: $this_incentive->(find:'programurl') != '']Incentive details online[/if]

[var:'current_implementer' = $this_incentive->(find:'company')] [var:'current_program' = $this_incentive->(find:'programtitle')] [/iterate]