• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

ListFirst

Synopsis

                  ListFirst(list [, delimiters])

Returns the first element in the specified list. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). Example:

<cfset MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
   
<cfoutput>
<b>List:</b> #MyList#<br>
<b>First Element:</b> #ListFirst(MyList)#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint