Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.7 KB

logic.md

File metadata and controls

36 lines (27 loc) · 1.7 KB

Logic: Json-Logic

Guide →Json-logic

Sezione Conditional → Advanced Conditions → JSONLogic
The logics in this section are “negated” by default as they act directly on the property ”hidden” of the field in which they are inserted.

  • The result of the inserted logic must be boolean
  • Logical map:
    • {logic} ==> True → Result = False
    • {logic} ==> False → Result = True

Logic section
Field logics are managed only with json logic; it is possible to insert multiple logics, for each logic it is possible to insert multiple actions.
The logics are divided into two specific groups:conditions, actions
The conditions are elements that the configurator identifies with Logic, the actions are elements that the configurator identifies with Action.
In json-logic expressions you can use in "var" the following objects:

logic

form.[Property Name ] → form.rec_name
form.data_value.[Property Name ] → form.data_value.dataOra
user.{metadata}

As regards the actions, it is possible to manage only the following types of actions: Property or Value

  • Property → the selected property takes on the value entered in the appropriate field

    logic

  • Value → And It is possible to enhance any property of the field in the following ways:

    • with the result of condition if you enter only the name of the property
    • with an operation json-logic if it fits field_name=’{“var”:[....]}’

    logic

Return home