To return the last name of a user
This function will tell you the last name of the current or a given user.
This refers to the last name that is on file in the profile of the user, not the display name.
userLastName()
userLastName(user)
string
userLastName()
To return the last name of the current user.
Result: Rogers (if Steve Rogers from the Avengers is currently using the database)
userLastName(myUser)
To return the last name of a given user.
Select Captain America in the user field Superhero.
Result: Rogers
(if Captain America is selected in the User field)
user
, which returns the current or a specific user.
userFirstName
, which returns the first name of a user.
userFullName
, which returns the full name of a user.