Elvis operator
The Elvis operator is a short form for the Ternary operator for null checks. This operator requires a leading and trailing space.
You can rewrite user.id != null ? user.id : 'N/A'
as user.id
?: 'N/A'
.
Search Tips
To improve the relevance of your search results, use natural language (“How do I get started with PingOne?”) or longer queries with multiple keywords ("unpairing a lost or damaged device from pingid").
The following tips can help with keyword searches:
*
for wildcard searches (wildcar*
)?
to match a single character (gr?y
matches grey
and gray
)"
) find a phrase ("specific phrase"
)+
for an exact match (+perform
returns only results that contain perform
)-
to exclude a word (-excluded
)AND
, OR
, NOT
, and NEAR
The Elvis operator is a short form for the Ternary operator for null checks. This operator requires a leading and trailing space.
You can rewrite user.id != null ? user.id : 'N/A'
as user.id
?: 'N/A'
.