# Template language: testing whether a window control's help (PROP:Hlp) is empty

**URL:** <https://forums.softvelocity.com/t/template-language-testing-whether-a-window-controls-help-prop-hlp-is-empty/358>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 12:52am UTC](https://forums.softvelocity.com/t/template-language-testing-whether-a-window-controls-help-prop-hlp-is-empty/358 "2026-11-09T00:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 12:52am UTC](https://forums.softvelocity.com/t/template-language-testing-whether-a-window-controls-help-prop-hlp-is-empty/358/1 "2026-11-09T00:52:47Z")

</div>

**Applies to:** posted in the group softvelocity.clarion.templates in 2018; version and template chain not named.

**Problem**

The poster wanted to check in template language whether a control in a window definition has its help filled in, and when empty generate code that sets it, such as `%Control{PROP:Hlp} = "yadayada"`. He found no template statement for the check. The obvious form was suggested by another poster:

```auto
#FOR(%Control)
#IF(%Control{PROP:Hlp}='')
 ...

```

The template language did not accept `#IF(%Control{PROP:Hlp}='')`.

**Solution**

Test the control's statement text instead, with EXTRACT on %ControlStatement:

```auto
#IF(EXTRACT(%ControlStatement,'HLP') = '')
%Control{PROP:Hlp} = "yadayada"
#ENDIF

```

The poster answered "works perfect".

**Caveats**

- The suggestion came from a poster who had not tested it; the original asker then confirmed it.
- It looks at the control declaration's HLP attribute, not at a run-time property.
- Run it inside the usual #FOR(%Control) loop.

**Today (2026)**

Not re-tested. EXTRACT on the control statement is plain template language and probably still works on current builds.

**Sources:** Gunter S. (Jan 2018, the question), Peter H., Mike D. (Jan 2018) in softvelocity.clarion.templates.
