Menu

Sections

A model is divided into sections. Each section has its own dedicated purpose.

All sections:

  • General: provide basic information about the model.
  • Imports: reuse models and create hierarchy.
  • Questions: create objects with mutable values.
  • Cache: create cache request bodies.
  • Variables: create customized values.
  • Rules: use statements to bring business intelligence to your model.
  • BOM-Items: add bom items to your model.
  • Figures: add figures to your model.
  • Price: add prices to your model.
  • Translation: add translations to your model.
  • Images: add images to your model.

Example

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 )
Menu