LogicalAnd / Operator Layer

Perform logical AND operation between boolean columns or with a constant boolean value. Similar to pandas df['A'] & df['B'], numpy.logical_and(), or R's & operator.

Truth table:

ABA AND B
truetruetrue
truefalsefalse
falsetruefalse
falsefalsefalse
nullanynull

Common applications:

  • Combining multiple conditions (valid & active)
  • Multi-criteria filtering (in_stock & on_sale)
  • Security checks (authenticated & authorized)
  • Quality validation (tested & passed)
  • Status verification (enabled & available)
  • Complex rule evaluation (meets_age & has_consent)

Note: Follows standard boolean logic with three-valued logic for nulls.

Table
0
0
Table

The primary boolean column for AND operation. Must contain boolean values. Forms the first condition in logical combinations (e.g., is_valid, has_access).

Constant

Value

bool
false

Boolean constant for AND operation. Use cases:

  • Conditional disabling (status & false)
  • Feature gating (feature & true)
  • Flag resetting (flag & false)
  • State preservation (state & true)

Other

column

The second boolean column for AND operation. Common pairs:

  • user_active & subscription_valid
  • price_ok & quantity_available
  • data_complete & data_valid
  • meets_criteria & approved

Must contain boolean values

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.