# GEN: Unknown Variable '%Family' On App Gen and Build

**URL:** <https://clarionhub.com/t/gen-unknown-variable-family-on-app-gen-and-build/6746>\
**Category:** questions\
**Created:** [November 3, 2023, 10:58am UTC](https://clarionhub.com/t/gen-unknown-variable-family-on-app-gen-and-build/6746 "2023-11-03T10:58:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [September 1, 2026, 4:21pm UTC](https://clarionhub.com/t/gen-unknown-variable-family-on-app-gen-and-build/6746/6 "2026-09-01T16:21:06Z")

</div>

I found this thread.

> [@How to know the Family() of a Template](https://clarionhub.com/t/how-to-know-the-family-of-a-template/5855/6):
>
> Just found Registered() as in #If(Registered(‘TemplateName(Family)’) which according to the docs should also work for everything except the #Template template. Will need to test if the family/chain/set is wrapped in parenthesis like above automatically as another way to detect ABC or CW20.

Look at what gets exported

```auto
[APPLICATION]
VERSION 28
TODO Clarion ToDo
DICTIONARY 'TrigExam.dct'
PROCEDURE Main
[COMMON]
FROM Clarion
MODIFIED '2005/04/27' '18:23:37'
[PROMPTS]

```

```auto
[APPLICATION]
VERSION 28
TODO ABC ToDo
DICTIONARY 'TrigExam.dct'
PROCEDURE Main
[COMMON]
FROM ABC
MODIFIED '2005/04/27' '18:20:19'
[PROMPTS]

```

Maybe export to TXA, read the 3rd line into a %symbol and do a StrPos on it, something like `#IF( StrPos( %Line, 'ABC', %TRUE) )`

Or look for a `%proceduretemplate` that exists in the ABC family but not the CW family.

---

_[View the full topic](https://clarionhub.com/t/gen-unknown-variable-family-on-app-gen-and-build/6746)._
