Checks whether a condition is present, absent (negated), or don't care in a given term.

get_condition_status(term, condition)

Arguments

term

Character. Single term (e.g., "X1*X2", "~X3").

condition

Character. Condition name (e.g., "X1").

Value

Character. One of "present", "absent", or "dontcare".

Details

A term is a product of literals separated by *, and a literal is a condition name, optionally preceded by ~. Whole literals are compared, so a name that is contained in another name (X1 and X10, or a non-ASCII name and a longer name that starts with it) is never mistaken for it.