| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Built-in Template Procedures >====== INLIST (return item exists in list) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[fullname return file path .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[instance return current instance number .htm|{{btn_next_n.gif|Next page}}]] | | || **INLIST(** //item, symbol// ) {{blk2blue.jpg|blk2blue.jpg}} | **INLIST** | Returns the instance number of the //item// in the //symbol//. | | //item// | A string constant or symbol containing the name of the item to return. | | //symbol// | A multi-valued symbol that may contain the item. | The **INLIST** procedure returns the instance number of the //item// in the //symbol//. If the //item// is not contained in the //symbol//, INLIST returns zero (0). **Return Data Type:**     LONG **Example:** **#IF(****INLIST****('?MyControl',%Control))** **  !Generate some source** **#ENDIF** **See Also:** [[built in template procedures.htm|Built-In Template Procedures]]