Advertisement
Sajgoniarz

Condition Tree struct

Jun 21st, 2023
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.68 KB | Help | 0 0
  1. {
  2.     type: ConditionTree.root,
  3.     operator: Operators.and,
  4.     leafs: [
  5.         {
  6.             type: ConditionTree.leaf,
  7.             leftValue: x,
  8.             condition: x,
  9.             operator: Operators.equal
  10.             rightValue: z
  11.         },
  12.         {
  13.             type: ConditionalTree.leaf,
  14.             leftValue: x,
  15.             condition: y,
  16.             operator: Operators.equal
  17.             rightValue: z
  18.         },
  19.         {
  20.             type: ConditionTree.root
  21.             operator: Operators.or,
  22.             leafs: [
  23.                 {
  24.                     type: ConditionTree.leaf,
  25.                     leftValue: x,
  26.                     condition: y,
  27.                     operator: Operators.equal
  28.                     rightValue: z,
  29.                 },
  30.                 {
  31.                     type: ConditionTree.leaf,
  32.                     leftValue: x,
  33.                     condition: y,
  34.                     operator: Operators.equal
  35.                     rightValue: z,
  36.                 },
  37.             ]
  38.         },
  39.     ]
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement