Inverts a true value into false (and vice versa). This can be very useful when it’s easier to express the opposite of what you want.
Consider a rule should find elements that don’t have a “Paint” finish. It’s very easy to find elements that do have a paint finish by writing:
element.finish contains “Paint”
…but we want to know when that’s not true. So we can simply write:
not(element.finish contains “Paint”)
This function is intended to work on true/false values. If it receives a numeric value, zero is interpreted as false and anything else as true. Text will generally be interpreted as false, unless the text is “true” or “false” or can be interpreted as a number, e.g. “3.0”.
Comments
0 comments
Please sign in to leave a comment.