I'd like to ask for some advice on the relationship between numbers

The syntax is blue characters if the data value is less than text, and red characters if it is large. When entering text 30, if the data value is less than 30, blue should appear, but the interval between 5 and 10 is the error size. Only areas from numbers 5 to 10 are red. The remaining 1 to 4 and 11 to 29 are typically displayed in blue characters. I want to express the section from the number 5 to 10 in blue. No matter how much you look at it, it is judged that the logical expression is not wrong. Please give me some advice.

For multiple conditional criteria you can have if-then-elif block.


Since, only one will be true, isn't it?

You would be better off using the < relational block rather than the compare texts block. The math block will convert the text values into numbers for comparison. Otherwise, you can end up in situations where 9 > 10 because 9's value as a character in a string is larger than 1, but as a number 10 is larger than 9.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.