# Synopsis

(macro) int ddf_CheckEntityAttr(DDF_TF tf, long attr)

# Purpose

Check if an entity TF has an attribute.

# Description

If the DDF entry for entity TF tf was specified with the attr attribute this function will return true, otherwise it will return false. The attr argument must be specified as one of the #defines generated by the DDF compiler for the attributes (the name of the attribute in uppercase) or a combination of them logically ORed together.

# Input

## tf

The TF to check for having attr

## attr

The attribute to check for

# Return

True if the entity has attr specified, false if not.