ComfyUI Node
test Is Multiple Of x Check π²
Simple node to check if an input number and/or the optional second number is a multiple of the specified 'multiple' value. Outputs Booleans. If number_b is not given, will output None.
test Is Multiple Of x Check π²
- number_a
- number_b
- is_a_multiple_of
- is_b_multiple_of
βmultiple64βΊ
βerror_if_b_nonefalseβΊ
βfalse_instead_nonefalseβΊ
CategoryRyuuNoodles π²/Numbers
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| number_a | * | The number to check if it is a multiple of the 'multiple' value. Required input. | |
| multiple | INT | 64 | β |
| error_if_b_none | BOOLEAN | false | If True, will raise an error if number_b is None. |
| false_instead_none | BOOLEAN | false | If True, will output False instead of None if number_b is None. This does not bypass the error_if_b_none option. |
| number_bopt | * | Optional second number to check if it is also a multiple of the same value. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| is_a_multiple_of | BOOLEAN | β |
| is_b_multiple_of | BOOLEAN | β |