3.1.3.7 Operators
Operator blocks are used for mathematical calculations, condition comparison, logical judgment, and text processing, providing a foundation for detection, control judgment, and data analysis in programs.
| blocks | Note |
 | Add the calculation |
 | Subtract operations |
 | Multiply by calculation |
 | Subtract the calculation |
 | Generate a random number within a given range, with the minimum and maximum values set to 1 and 10, respectively. |
 | Greater-than operator |
 | Less than operator |
 | equals |
 | Logic and operations: the condition returns true only if both conditions are met; otherwise, it returns false. |
 | The logical OR operation returns true if either of the two conditions is satisfied; otherwise, it returns false. |
 | The logical NOT operation returns false if the input is true, and true if the input is false. |
 | Concatenate strings |
 | Retrieve a specific character in a string, starting from 1. |
 | Get the number of characters in a string. |
 | Determine whether a string contains a specific character. |
 | Extract a specific segment of characters from a string. |
 | Get the position of the first or last occurrence of a character in a string. |
 | Modulo operation |
 | Rounding |
 | Perform common advanced mathematical operations on numerical values, such as taking the absolute value, rounding down, rounding up, and calculating square roots. |
 | Perform a mapping operation on the values to map the values in one range to the values in another range on a one-to-one basis. |
 | Constrain the values so that the output does not exceed the maximum or fall below the minimum. |