Minecraft wiki entry for scoreboard, associated text: Syntax
scoreboard players test <player: target> <objective: string> <min: wildcard int> [<max: wildcard int>] (Bedrock Edition)
Description
Tests if targets' scores are between min and max (defaults to MAX_INT(2,147,483,647)).
Arguments
player: target: WildcardCommandSelector<Actor>
Specifies the score holders.
Must be a selection of score holders. It may be either a target selector, a player name, a UUID‌[Java Edition only], a unique ID of an entity‌[Bedrock Edition only], or * for all score holders tracked by the scoreboard. Named player needn't be online, and it even needn't be a real player's name.
objective: string: basic_string
Specifies the objective.
Must be either a single word that isn't a number (allowed characters: -, :, ., _, A-Z, a-z, and 0-9) or a double-quoted string.
min: wildcard int: CommandWildcardInt
max: wildcard int: int
Specifies the min value and max value that the random number is between.
Must be a 32-bit integer. And min: wildcard int can be replaced with asterisk (*) to represent -2,147,483,648, and max: wildcard int can be replaced with asterisk (*) to represent 2,147,483,647.
Result
Command Trigger Bedrock Edition
... test ... the arguments are not specified correctly N/A
... test ... the objective doesn't exist
player: target fails to resolve to one or more score holders
max: int is less than min: int
On success Test the score
Output
Command Edition Situation Success Count /execute store success ... /execute store result ...
... test ... Bedrock Edition On fail 0 N/A N/A
On success the number of the specified score holders whose score is between min and max N/A N/A