userLastName

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.

Syntax

userLastName()

userLastName(user)

Return

string

Examples

userLastName() To return the last name of the current user.

userLastName()

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.

userLastName(Superhero)

Result: Rogers

(if Captain America is selected in the User field)

See also

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.

Last updated