Creates a single-condition branching rule that shows or hides a survey item depending on the value of a preceding item. Only single-condition rules are supported. Multi-condition AND/OR logic is planned for a later release.
Arguments
- item_id
Character. The
idof the item whose visibility this rule controls.- depends_on
Character. The
idof the item whose response value triggers this rule.- operator
Character. The comparison operator. One of
"==","!=","%in%",">",">=","<", or"<=".- value
The value to compare against the response to
depends_on. For"%in%", supply a character or numeric vector.- action
Character. What to do when the condition is met. Either
"show"(default) or"hide".
See also
sframe_instrument(), validate_sframe()
Other Design functions:
as_sframe(),
launch_builder(),
read_sframe(),
sframe_attention_check(),
sframe_choice_set(),
sframe_conjoint_design(),
sframe_get_study(),
sframe_instrument(),
sframe_item(),
sframe_sampling_methods(),
sframe_scale(),
sframe_validation,
validate_sframe(),
write_sframe()