Skip to Content Skip to Menu

[SOLVED] Auto action plugin and Conditions

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 3 months ago - 7 years 2 months ago #295824 by tribalion
Hi team,

A simple question about conditions in the Auto action plugin,

We can "add rows" in the Conditions Tab, but in wich way does it works with severals conditions, AND or OR ?

I was not able to find the answer.

Thanks - Eric
Last edit: 7 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 3 months ago #295835 by krileon
Replied by krileon on topic Auto action plugin and Conditions
If any of the conditions fail to match the auto action will not execute. Improvements to the conditions are planned in a later release where you can specifically specify AND/OR cases.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 2 months ago #295851 by tribalion
Replied by tribalion on topic Auto action plugin and Conditions
Ok that's clear,
thanks Krileon

Please Log in or Create an account to join the conversation.

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 2 months ago #295853 by tribalion
Replied by tribalion on topic Auto action plugin and Conditions
Awating a future improvment, here is a way to have AND conditions, with two or more conditions
  1. Create an auto action with a condition but NO trigger, save and close
  2. Create another auto action with type "action", set a condition and the trigger you want
  3. Choose in the action tab the first auto action you've created (it's possible to selected more than one auto action), save and close
That work for me

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 2 months ago #295858 by krileon
Replied by krileon on topic Auto action plugin and Conditions
The conditions basically are always AND. If one of them fails the auto action won't execute. What you're currently doing is additional steps for no reason. Simply have your conditions on the auto action you're wanting with the appropriate trigger. There's no need to have an action fire another action in your case. The improvements that'll be made in the future will be to allow condition groups as follows.

Group 1 ( Condition 1 AND Condition 2 )
OR Group 2 ( Condition 1 OR Condition 2 )

It becomes more like a structured IF statement allowing a lot more control. Currently all that's available is as follows.

Condition 1 AND Condition 2 AND Condition 3 AND Condition 4

The only way to do OR is within the single condition it self like the below.

Condition 1: [cb_myfield] Is REGEXP /VALUE_1|VALUE_2/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: tribalion

Please Log in or Create an account to join the conversation.

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 2 months ago #295893 by tribalion
Replied by tribalion on topic Auto action plugin and Conditions
You're right,
There was no reasons to proceed as I wrote, I was a bit confused, it's working now with two conditions that each of them must be TRUE (AND)

Thanks ! Eric
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum