Piecewise

Build chat bots with blocks

number of votes for poll option (option) in poll (poll)

In Mastodon → Polls

Jump to block

Returns the number of votes for a given option in a given poll.

Requires the following blocks to be present in the project: mastodon login

Parameters

Parameter name Parameter type Required? Description
option String The option to check.
poll poll The poll to check.

Output

Number - The number of votes for a given option in a given poll. Returns 0 if the option does not exist.