intersectExp function

Intersects two boolean expressions.

Intersects two boolean expressions.

Function that intersects two boolean expressions.

intersectExp(expression1, expression2)

Arguments

  • expression1: A boolean expression. Conditions should be capitalized and negated conditions should be inserted with a "~". Unions of conditions are performed with a "+", while intersections are performed with a "*".
  • expression2: A boolean expression. Conditions should be capitalized and negated conditions should be inserted with a "~". Unions of conditions are performed with a "+", while intersections are performed with a "*".

Returns

It returns the boolean expression representing the intersection of the two inputed expressions.

Author(s)

Ioana-Elena Oana

Examples

intersectExp("~EMP*MA", "MA+~STOCK*OCCUP") intersectExp("~A*B + C*~D","A*B+~D")
  • Maintainer: Ioana-Elena Oana
  • License: GPL-2
  • Last published: 2025-03-21

Useful links