aiHas

Returns true when an AI endpoint with the given name is configured. Lucee 6.2 names it luceeAIHas(), which Lucee 7 still accepts.

aiHas(name) → returns boolean

This function requires Lucee 7 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

name string
Required

The endpoint name from the Lucee Administrator, or a default:category reference.

Examples
Sample code invoking the aiHas function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub