You are here

conditional_test_export.txt in Conditional Rules 8

Same filename and directory in other branches
  1. 7 tests/conditional_test_export.txt
{ "conditional_test" : {
    "PLUGIN" : "action set",
    "REQUIRES" : [ "rules_conditional", "rules_conditional_test", "rules" ],
    "USES VARIABLES" : { "node" : { "type" : "node", "label" : "Node" } },
    "ACTION SET" : [
      { "CONDITIONAL" : [
          {
            "IF" : { "data_is" : { "data" : [ "node:title" ], "value" : "if" } },
            "DO" : [ { "rules_conditional_test_throw" : { "message" : "if" } } ]
          },
          {
            "ELSE IF" : { "data_is" : { "data" : [ "node:title" ], "value" : "else if" } },
            "DO" : [ { "rules_conditional_test_throw" : { "message" : "else if" } } ]
          },
          { "ELSE" : [ { "rules_conditional_test_throw" : { "message" : "else" } } ] }
        ]
      }
    ]
  }
}

File

tests/conditional_test_export.txt
View source
  1. { "conditional_test" : {
  2. "PLUGIN" : "action set",
  3. "REQUIRES" : [ "rules_conditional", "rules_conditional_test", "rules" ],
  4. "USES VARIABLES" : { "node" : { "type" : "node", "label" : "Node" } },
  5. "ACTION SET" : [
  6. { "CONDITIONAL" : [
  7. {
  8. "IF" : { "data_is" : { "data" : [ "node:title" ], "value" : "if" } },
  9. "DO" : [ { "rules_conditional_test_throw" : { "message" : "if" } } ]
  10. },
  11. {
  12. "ELSE IF" : { "data_is" : { "data" : [ "node:title" ], "value" : "else if" } },
  13. "DO" : [ { "rules_conditional_test_throw" : { "message" : "else if" } } ]
  14. },
  15. { "ELSE" : [ { "rules_conditional_test_throw" : { "message" : "else" } } ] }
  16. ]
  17. }
  18. ]
  19. }
  20. }