Skip to main content
Returns if member is a member of the set stored at key.

Usage

Parameters

string
required
The key of the set
TData
required
The member to check for existence in the set

Response

0 | 1
Returns 1 if the member exists in the set, 0 otherwise

Examples

Check if member exists

Check for non-existing member

Using in conditionals

Check membership with custom types