You are here

rule_condition_set_test_export.txt in Conditional Rules 7

Same filename and directory in other branches
  1. 8 tests/rule_condition_set_test_export.txt
{ "rule_condition_set_test" : {
    "PLUGIN" : "rule condition set",
    "REQUIRES" : [ "rules_conditional", "rules" ],
    "USES VARIABLES" : { "test" : { "type" : "text", "label" : "Test" } },
    "DO" : [
      { "variable_add" : {
          "USING" : { "type" : "text" },
          "PROVIDE" : { "variable_added" : { "test2" : "Test 2" } }
        }
      },
      { "data_set" : { "data" : [ "test2" ], "value" : [ "test" ] } }
    ],
    "RESULT" : [ { "data_is" : { "data" : [ "test2" ], "value" : "condition set" } } ]
  }
}

File

tests/rule_condition_set_test_export.txt
View source
  1. { "rule_condition_set_test" : {
  2. "PLUGIN" : "rule condition set",
  3. "REQUIRES" : [ "rules_conditional", "rules" ],
  4. "USES VARIABLES" : { "test" : { "type" : "text", "label" : "Test" } },
  5. "DO" : [
  6. { "variable_add" : {
  7. "USING" : { "type" : "text" },
  8. "PROVIDE" : { "variable_added" : { "test2" : "Test 2" } }
  9. }
  10. },
  11. { "data_set" : { "data" : [ "test2" ], "value" : [ "test" ] } }
  12. ],
  13. "RESULT" : [ { "data_is" : { "data" : [ "test2" ], "value" : "condition set" } } ]
  14. }
  15. }