Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engineā„¢ 3.0.0.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

hasUserProperty(user, property)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Checks if the user has the given property set.

Checks if the user has the given property set.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

user

String

Yes

Username or userkey to check the property for.

property

String

...

Yes

Key of the property to check.

Return

...

Type

booleanBoolean

Returns "true" if the user has the given property set and "false" otherwise.

...

Code Block
if(hasUserProperty("testuser", "phone")) {
	return getUserProperty("testuser", "phone");
}

Notes

Note

The look-up is first made after the userkey, then after the username.

See also

Filter by label (Content by label)
showLabelsfalse
max15025
showSpacefalse
cqllabel = "user_routine" and space = currentSpace ( )
labelsuserarray_routineroutines