AND Function: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
This function returns the Boolean value "true" if both conditions are true. It is usually used in conjunction with the [[IF Function]]. Format:
This function returns the Boolean value "true" if both conditions are true. It is usually used in conjunction with the [[IF Function]].  


AND(condition1;condition2)
''Format:''


AND(condition1;condition2)
*'''AND(condition1;condition2)'''


where:
*'''AND(condition1;condition2)'''


●     condition1 / condition2 - logical expressions using >, <, =, >=, <=, !=, other functions, report column values or fields
''where:''
*condition1 / condition2 - logical expressions using >, <, =, >=, <=, !=, other functions, report column values or fields


 
 


Examples:
''Examples:''


IF(AND(D="Column text";C>100500);"Good";"Bad")
IF(AND(D="Column text";C>100500);"Good";"Bad")


Notes:


●     the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled.
''Notes:''
 
*the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled.
●     When checking values in custom Checkbox fields, you should use 1 and 0 in reports and Yes / No in data tag calculated fields
*when checking values in custom Checkbox fields, you should use 1 and 0 in reports and Yes / No in data tag calculated fields


 
 

Revision as of 17:48, 5 December 2019

This function returns the Boolean value "true" if both conditions are true. It is usually used in conjunction with the IF Function.

Format:

  • AND(condition1;condition2)
  • AND(condition1;condition2)

where:

  • condition1 / condition2 - logical expressions using >, <, =, >=, <=, !=, other functions, report column values or fields

 

Examples:

IF(AND(D="Column text";C>100500);"Good";"Bad")


Notes:

  • the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled.
  • when checking values in custom Checkbox fields, you should use 1 and 0 in reports and Yes / No in data tag calculated fields

 

Go To