Decision logic

Functions

  • ArrayIsDefined()

    Returns whether there exists an item in the array at the selected index.

  • ArrayIsEmpty()

    Determines if the array is empty.

  • DirectoryExists()

    Determines whether a directory exists.

  • FileExists()

    Determines whether a file exists

  • IsArray()

    Determines whether a value is an array.

  • IsBinary()

    Determines whether a value is stored as binary data.

  • IsBoolean()

    Determines if the object represents a boolean value

  • IsClosure()

    checks if given Object is a closure or not.

  • IsCustomFunction()

    Determines whether a name represents a custom function

  • IsDate()

    Determines whether a string or Java object can be converted to a date/time value.

  • IsDebugMode()

    Determines whether debugging output is enabled.

  • IsDefined()

    Evaluates a string value to determine whether the variable named in it exists.

  • IsEmpty()

    Returns whether or not a given value is "empty".

  • IsFileObject()

    Determines whether a value is an file object. True, if the value represents a file object.

  • IsImage()

    Determines whether a variable returns a image.

  • IsImageFile()

    Verifies whether an image file is valid.

  • IsInstanceOf()

    Determines whether an object is an instance of a Lucee interface or component, or of a Java class.

  • IsIPInRange()

    Checks if an ip is in the range of a list of given ips. IPv4 and IPv6 are supported.

  • IsIPv6()

    checks if given IP is of IPV6 format

  • IsJson()

    Evaluates whether a string is in a valid JSON (JavaScript Object Notation) or JSON5 data interchange format.

  • IsLeapYear()

    Determines whether a year is a leap year.

  • IsLocalHost()

    Determines whether the specified IP address is the localhost.

  • IsNull()

    Determines whether given object is null or not

  • IsNumeric()

    Determines if the object represents a numeric

  • IsNumericDate()

    Evaluates whether a real number is a valid representation of a date (date/time object).

  • IsObject()

    Determines whether a value is an object.

  • IsPDFObject()

    Determines whether a value is a PDF object.

  • IsQuery()

    Determines whether value is a query.

  • IsSimpleValue()

    Determines if the object represents a simple value like a string, number, boolean etc

  • IsSOAPRequest()

    Determines whether a CFC is being called as a web service.

  • IsStruct()

    Determines if the object is a structure

  • IsUserInAnyRole()

    Determines whether an authenticated user belongs to any role in a list of roles.

  • IsUserInRole()

    Determines whether an authenticated user belongs to the specified Role.

  • IsUserLoggedIn()

    Determines whether a user is logged in.

  • IsValid()

    Tests whether a value meets a validation or data type rule.

  • IsWddx()

    Determines whether a value is a well-formed WDDX packet.

  • IsWithinTransaction()

    Determines whether the current thread is within a transaction block or not.

  • IsXML()

    Determines whether a string is well-formed XML text.

  • IsXmlAttribute()

    Determines whether the function parameter is an XML Document Object Model (DOM) attribute node.

  • IsXmlDoc()

    Determines whether a function parameter is an Extended Markup language (XML) document object.

  • IsXmlElem()

    Determines whether a function parameter is an Extended Markup language (XML) document object element.

  • IsXmlNode()

    Determines whether the function parameter is an XML document object node.

  • IsXmlRoot()

    Determines whether a function parameter is the root element of an Extended Markup language (XML) document object.

  • IsZipFile()

    Verifies whether an zip file is valid.

  • Len()

    Determines the length of a string, array or struct

  • LSIsCurrency()

    Determines whether a string is a valid representation of a currency amount in the current locale.

  • LSIsDate()

    Determines whether a string is a valid representation of a date/time value in the current locale.

  • LSIsNumeric()

    Determines whether a string is a valid representation of a number in the current locale.

  • ObjectEquals()

    compares simply and complex objects for equality, by default, string comparison is not case sensitive

  • StructIsEmpty()

    Determines whether a structure contains data.

Methods

Guides

  • Data Types in Lucee

    This document explains types in Lucee. Lucee is still an untyped language. Types are only a check put on top of the language.