0% found this document useful (0 votes)
37 views

Decision Logic - Lucee Documentation

This document discusses decision logic in Lucee, including methods like array.isDefined() and functions like ArrayIsEmpty() that help with conditional logic. It provides an overview of many functions for evaluating variables and values, checking types, validating formats, and more.

Uploaded by

rangel.sardinha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Decision Logic - Lucee Documentation

This document discusses decision logic in Lucee, including methods like array.isDefined() and functions like ArrayIsEmpty() that help with conditional logic. It provides an overview of many functions for evaluating variables and values, checking types, validating formats, and more.

Uploaded by

rangel.sardinha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

4/16/23, 10:17 PM Decision logic :: Lucee Documentation


(/index.html)
Decision logic

Docs (https://docs.lucee.org/index.html)
 Categories (https://docs.lucee.org/categories.html)
 Decision logic (https://docs.lucee.org/categories/decision.html)

 (https://github.com/lucee/lucee-
docs/edit/master/docs/05.categories/080.decision/category.md)
Methods
array.isDefined() (/reference/objects/array/isdefined.html) Returns whether there exists an
item in the array at the selected index.
array.isEmpty() (/reference/objects/array/isempty.html) Determines if the array is empty.
struct.isEmpty() (/reference/objects/struct/isempty.html) Determines whether a structure
contains data.

Functions
ArrayIsDefined() (/reference/functions/arrayisdefined.html) Returns whether there exists an
item in the array at the selected index.
ArrayIsEmpty() (/reference/functions/arrayisempty.html) Determines if the array is empty.
DirectoryExists() (/reference/functions/directoryexists.html) Determines whether a directory
exists.
FileExists() (/reference/functions/fileexists.html) Determines whether a file exists
IsArray() (/reference/functions/isarray.html) Determines whether a value is an array.
IsBinary() (/reference/functions/isbinary.html) Determines whether a value is stored as binary
data.
IsBoolean() (/reference/functions/isboolean.html) Determines if the object represents a
boolean value
IsClosure() (/reference/functions/isclosure.html) checks if given Object is a closure or not.
IsCustomFunction() (/reference/functions/iscustomfunction.html) Determines whether a
name represents a custom function
IsDate() (/reference/functions/isdate.html) Determines whether a string or Java object can be
converted to a date/time value.
IsDebugMode() (/reference/functions/isdebugmode.html) Determines whether debugging
output is enabled.
IsDefined() (/reference/functions/isdefined.html) Evaluates a string value to determine
whether the variable named in it exists.
IsEmpty() (/reference/functions/isempty.html) Returns whether or not a given value is
"empty".
https://docs.lucee.org/categories/decision.html 1/3
4/16/23, 10:17 PM Decision logic :: Lucee Documentation

IsFileObject() (/reference/functions/isfileobject.html) Determines whether a value is an file 


object. True, if the value represents a file object.
(/index.html)
IsImage() (/reference/functions/isimage.html) Determines whether a variable returns a image.
IsImageFile() (/reference/functions/isimagefile.html) Verifies whether an image file is valid.
IsInstanceOf() (/reference/functions/isinstanceof.html) Determines whether an object is an
instance of a Lucee interface or component, or of a Java class.
IsIPInRange() (/reference/functions/isipinrange.html) Checks if an ip is in the range of a list of
given ips. IPv4 and IPv6 are supported.
IsIPv6() (/reference/functions/isipv6.html) checks if given IP is of IPV6 format
IsJson() (/reference/functions/isjson.html) Evaluates whether a string is in valid JSON
(JavaScript Object Notation) data interchange format.
IsLeapYear() (/reference/functions/isleapyear.html) Determines whether a year is a leap year.
IsLocalHost() (/reference/functions/islocalhost.html) Determines whether the specified IP
address is the localhost.
IsNull() (/reference/functions/isnull.html) Determines whether given object is null or not
IsNumeric() (/reference/functions/isnumeric.html) Determines if the object represents a
numeric
IsNumericDate() (/reference/functions/isnumericdate.html) Evaluates whether a real number
is a valid representation of a date (date/time object).
IsObject() (/reference/functions/isobject.html) Determines whether a value is an object.
IsPDFObject() (/reference/functions/ispdfobject.html) Determines whether a value is a PDF
object.
IsQuery() (/reference/functions/isquery.html) Determines whether value is a query.
IsSimpleValue() (/reference/functions/issimplevalue.html) Determines if the object represents
a simple value like a string, number, boolean etc
IsSOAPRequest() (/reference/functions/issoaprequest.html) Determines whether a CFC is
being called as a web service.
IsStruct() (/reference/functions/isstruct.html) Determines if the object is a structure
IsUserInAnyRole() (/reference/functions/isuserinanyrole.html) Determines whether an
authenticated user belongs to any role in a list of roles.
IsUserInRole() (/reference/functions/isuserinrole.html) Determines whether an authenticated
user belongs to the specified Role.
IsUserLoggedIn() (/reference/functions/isuserloggedin.html) Determines whether a user is
logged in.
IsValid() (/reference/functions/isvalid.html) Tests whether a value meets a validation or data
type rule.
IsVideoFile() (/reference/functions/isvideofile.html) Check if a String is a Video file
IsWddx() (/reference/functions/iswddx.html) Determines whether a value is a well-formed
WDDX packet.
IsWithinTransaction() (/reference/functions/iswithintransaction.html) Determines whether the
current thread is within a transaction block or not.
IsXML() (/reference/functions/isxml.html) Determines whether a string is well-formed XML
text.

https://docs.lucee.org/categories/decision.html 2/3
4/16/23, 10:17 PM Decision logic :: Lucee Documentation

IsXmlAttribute() (/reference/functions/isxmlattribute.html) Determines whether the function 


parameter is an XML Document Object Model (DOM) attribute node.
(/index.html)
IsXmlDoc() (/reference/functions/isxmldoc.html) Determines whether a function parameter is
an Extended Markup language (XML) document object.
IsXmlElem() (/reference/functions/isxmlelem.html) Determines whether a function parameter
is an Extended Markup language (XML) document object element.
IsXmlNode() (/reference/functions/isxmlnode.html) Determines whether the function
parameter is an XML document object node.
IsXmlRoot() (/reference/functions/isxmlroot.html) Determines whether a function parameter is
the root element of an Extended Markup language (XML) document object.
IsZipFile() (/reference/functions/iszipfile.html) Verifies whether an zip file is valid.
LSIsCurrency() (/reference/functions/lsiscurrency.html) Determines whether a string is a valid
representation of a currency amount in the current locale.
LSIsDate() (/reference/functions/lsisdate.html) Determines whether a string is a valid
representation of a date/time value in the current locale.
LSIsNumeric() (/reference/functions/lsisnumeric.html) Determines whether a string is a valid
representation of a number in the current locale.
ObjectEquals() (/reference/functions/objectequals.html) compares simply and complex
objects for equality, attention string comparison is case sensitive
StructIsEmpty() (/reference/functions/structisempty.html) Determines whether a structure
contains data.
The Lucee Documentation is developed and maintained by the Lucee Association Switzerland
and is licensed under a (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
(http://creativecommons.org/licenses/by-nc-sa/3.0/).

https://docs.lucee.org/categories/decision.html 3/3

You might also like