---
title: "zcard · RUAL Documentation"
description: "Counts the members of a sorted set. A RUAL redis block in the redis sorted sets group. See its 2 input and 5 output pins and its version history."
canonical: https://docs.rual.nl/block-types/redis/redis_zcard
language: en
---

# zcard

This block is part of the [`redis`](https://docs.rual.nl/block-types/redis) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

## Redis Key Selection Required

This block relies on a Redis key to perform its redis releated actions. You must manually select the Redis key you want to use in the flow in the blueprint using the Redis key selector modal. To access the modal, click the white button on the block.

Counts the members of a sorted set.

- flow

- set `value` required key of the sorted set

- flow

- number `number`

- success `condition`

- error `value`

- key `value`

0 when the set is missing.

| `redis zcard` |
| --- |
| `zcard` |

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

## Service documentation

- [External API reference](https://redis.io/commands/zcard/): This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.

- [Back to `redis`](https://docs.rual.nl/block-types/redis): Return to the main group to view all sub-groups

- [Back to `redis sorted sets`](https://docs.rual.nl/block-types/redis?group=redis%20sorted%20sets): Return to the group to view all blocks within this group
