Logic group

1. And

Description

This is a logical conjunction that returns true only if all the given arguments are true. This operation admits more than two arguments, using the same format.

Format

arg_1 and arg_2 → result

  • arg_1 : Boolean
  • arg_2 : Boolean
  • result : Boolean

Examples

  Example 1

true and true 

    • arg_1 : true
    • arg_2 : true
    • result : true
  Example 2

countryname("USA")

    • arg_1 : true
    • arg_2 : true
    • arg_3 : false
    • result : false
  Example 3

false and false 

    • arg_1 : false
    • arg_2 : false
    • result : false

2. Not

Description

This is a logical complement that returns the complement of the given argument. The negation of true is false and vice versa.

Format

not arg_r1 → result

  • arg_1 : Boolean
  • result : Boolean

Examples

  Example 1

not true

    • arg_1 : true
    • result : false
  Example 2

not false

    • arg_1 : false
    • result : true

3. Or

Description

This is a logical disjunction that returns true if any of the given arguments is true. This operation admits more than two arguments, using the same format.

Format

arg_1 or arg_2 → result

  • arg_1 : Boolean
  • arg_2 : Boolean
  • result : Boolean

Examples

  Example 1

true or true

    • arg_1 : true
    • arg_2 : true
    • result : true
  Example 2

true or true or false 

    • arg_1 : true
    • arg_2 : true
    • arg_3 : false
    • result : true
  Example 3

false or false 

    • arg_1 : false
    • arg_2 : false
    • result : false

Have we answered your question?

If not, please contact our technical support team via email by clicking the button below.

CONTACT US