Skip to content

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
image Add the calculation
image Subtract operations
image Multiply by calculation
image Subtract the calculation
image Generate a random number within a given range, with the minimum and maximum values set to 1 and 10, respectively.
image Greater-than operator
image Less than operator
image equals
image Logic and operations: the condition returns true only if both conditions are met; otherwise, it returns false.
image The logical OR operation returns true if either of the two conditions is satisfied; otherwise, it returns false.
image The logical NOT operation returns false if the input is true, and true if the input is false.
image Concatenate strings
image Retrieve a specific character in a string, starting from 1.
image Get the number of characters in a string.
image Determine whether a string contains a specific character.
image Extract a specific segment of characters from a string.
image Get the position of the first or last occurrence of a character in a string.
image Modulo operation
image Rounding
image Perform common advanced mathematical operations on numerical values, such as taking the absolute value, rounding down, rounding up, and calculating square roots.
image 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.
image Constrain the values so that the output does not exceed the maximum or fall below the minimum.