The condition source (string SafeExpression or a ready-made predicate function).
The owning entry's display name, used in log output.
Optionalparent: SohlLogicThe owning document's logic, used as the compiled expression's parent. Required to compile a string condition; a string condition without a parent is treated as hidden.
A predicate that evaluates the condition against a target.
Compile a context-menu
conditioninto a predicate suitable for Foundry's ContextMenu base class. Function-form conditions are passed through unchanged; string-form conditions are evaluated as SafeExpressions. Parse errors and evaluation errors on the string form are caught and logged; the entry is treated as hidden (predicate returnsfalse) rather than allowed to bubble.