Dynamic Components Logical Function Examples

Logical Functions (for math-related use)

Function Description Example(s)
AND(logicalValue1, logicalValue2, ...logicalValueN) The AND function returns TRUE if all arguments are TRUE. If any element is FALSE, this function returns the FALSE value. The logicalValue arguments are conditions to be checked. All conditions can be either TRUE or FALSE. View SketchUp Example
FALSE() The False function sets the logical value to FALSE. The FALSE function does not require any arguments. View SketchUp Example
IF(test, thenValue, elseValue) The IF function identifies a logical test. The test argument is any value or expression that can be TRUE or FALSE. The thenValue (optional) is the value that is returned if the logical test is TRUE. The elseValue (optional) is the value that is returned if the logical test is FALSE. Example:
  =IF (5=5, 1, 0)
Returns a 1 if the test (5=5) is TRUE. Otherwise, the function returns a 0.

View SketchUp Example
NOT(logicalValue) The NOT function reverses the logicalValue. The logicalValue argument is any value to be reversed. View SketchUp Example
OR(logicalValue1, logicalValue2, ...logicalValueN) The OR function returns TRUE if at least one argument is TRUE. This function returns FALSE if all the arguments have the logical value FALSE.The logicalValue arguments are conditions to be checked. All conditions can be either TRUE or FALSE. --
TRUE() The TRUE function turns the logical value to TRUE. The TRUE() function does not require any arguments. View SketchUp Example
Was this article helpful?