Spec-Zone.ru › ColdFusion

isStruct

Determines whether a variable is a structure. True, if variable is a CFML structure or is a Java object that implements the java.lang.Map interface. Returns False if the object in variable is a user-defined function (UDF).

isStruct(variable) → returns boolean

  • CF4+
  • Lucee
  • BL 1.0.0+
  • See Also: isArray isNumeric isValid

    Argument Reference

    variable any
    Required

    Examples
    Sample code invoking the isStruct function

    isStruct Example

    Returns true if variable is a ColdFusion structure or is a Java object that implements the java.lang.Map interface.

    isStruct( structNew() )

    Expected Result: true

    isStruct Example for False

    Returns false is the object in the variable parameter is a user-defined function UDF). In the example below exponent is a function created by the user

    isStruct( arrayNew(1) )

    Expected Result: false

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/isstruct

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API