Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 659 Bytes

File metadata and controls

25 lines (16 loc) · 659 Bytes

add_reference_if

Conditional Reference Addition

Control whether a reference can be added to this record, based on a conditions reference evaluated at runtime.

Pattern 1: Always Allow Adding The Reference

!defs(extra_options_add_reference_if_pattern_1_always_defs.yaml)

Pattern 2: Never Allow Adding The Reference

!defs(extra_options_add_reference_if_pattern_2_never_defs.yaml)

Pattern 3: Conditional Reference Addition

!defs(extra_options_add_reference_if_pattern_3_conditional_defs.yaml)

add_reference_if must be a hash using the standard conditions syntax.