A model is divided into sections. Each section has its own dedicated purpose.
All sections:
This is a basic model to get a sense of what a Logyx model looks like. It defines a product named couch . It is build out of two questions: type and color . The questions each have an identifier and a price. There is one rule defined, that hides the color blue if the left type is chosen. You can also see that the price is different for each color.
general:
name: Couch
questions:
type:
type: list
outputs: [ id, price ]
options:
- [ left, 899.99 ]
- [ right, 899.99 ]
color:
type: list
outputs: [ id, price ]
options:
- [ red, 100 ]
- [ blue, 200 ]
rules:
rule1: # hide blue color
- if: $type.outputs.id == left
- then: hide( $color, blue )