LogicalOr / Operator Layer

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

Truth table:

ABA OR B
truetruetrue
truefalsetrue
falsetruetrue
falsefalsefalse
nulltruetrue
nullfalsenull
nullnullnull

Common applications:

  • Alternative conditions (cash_payment | card_payment)
  • Error detection (timeout | connection_error)
  • Access control (admin | moderator)
  • Status checks (shipped | delivered)
  • Alert triggers (high_temp | low_pressure)
  • Validation rules (required | has_default)

Note: Implements short-circuit evaluation where possible (true OR x = true).

Table
0
0
Table

The primary boolean column for OR operation. Must contain boolean values. Forms the first condition in logical combinations (e.g., main_condition, primary_check).

Constant

Value

bool
false

Boolean constant for OR operation. Use cases:

  • Force enabling (status | true)
  • Default inclusion (filtered | false)
  • Override flags (restricted | true)
  • Fallback states (custom_setting | false)

Other

column

The second boolean column for OR operation. Common pairs:

  • primary_key_valid | backup_key_valid
  • local_cache_hit | remote_cache_hit
  • weekend | holiday
  • premium_user | beta_tester

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.