Voting Text Parameters
When replying to the received message which has been recognized as one of the answers, you can include the following text parameters:
- %AnsID% - The ID number of the answer.
- %AnsName% - The name of the answer.
- %AnsVotes% - The number of votes of the answer.
- %AnsRank% - The rank of the answer.
- %AnsPercentage% - The number of votes represented as percentage.
You may also include text parameters which take values from the voting results, disregarding the status of the received message. To use these text parameters, you should append underscore ( _ ) to the name of any text parameter described above,
followed by one of the modifiers, followed by a number, and optionally followed by a string. The following modifiers are supported:
- I - This modifier indicates that the value should be taken from the answer with the specified ID value.
- R - This modifier indicates that the value should be taken from the answer which has the specified rank. If there are multiple answers with the specified rank, then the list of values will be inserted. The default separator for
this list is comma ( , ) followed by one space character. To specify custom separator, append the string to be used as a separator.
- P - This modifier indicates that the value should be taken from the answer which has the specified position in the list of answers sorted by the number of votes.
For example:
- %AnsRank_I5% returns the rank of the answer with the ID number equal to 5.
- %AnsName_R2% returns the list of the names of the answers with rank 2 separated by ", ". If there are two answers with the rank 2 - Dog and Cat - then "Dog, Cat" will be returned.
- %AnsName_R2 ; % returns the list of the names of the answers with rank 2 separated by " ; ". If there are two answers with the rank 2 - Dog and Cat - then "Dog ; Cat" will be returned.
- %AnsPercentage_P3% returns the percentage of the answer on the 3rd position in the list of answers sorted by the number of votes.
Additionally, you can use the following parameters:
- %ServiceType% - The type of the service.
- %ServiceName% - The name of the service.
- %ServiceFileName% - The file name of the service.
- %ServiceInboxCount% - Returns the number of messages in the Voting Inbox.
- %VoteCount% - Returns the number of received votes which are included in the Voting Results.
- %RequestCount% - Returns the number of received votes which are excluded from the Voting Results.
- %NotRecognizedCount% - Returns the number of not recognized messages.
- %RejectedCount% - Returns the number of rejected messages.