Seite drucken - Editing the conditions in the Dispatcher

windigipet.de

Win-Digipet - international => Win-Digipet Forum English => Thema gestartet von: fur in 28. April 2016, 16:18:31

Titel: Editing the conditions in the Dispatcher
Beitrag von: fur in 28. April 2016, 16:18:31
I try to tell the dispatcher that I want it to do an action when either one of to buttons are green or one of two other buttons are green. I have tried for some time now, but I don't manage to get the "Ors" and "Ands" right. I suppose this should be possible. Anyone out there who can help ?
Titel: Re: Editing the conditions in the Dispatcher
Beitrag von: Stefan Lersch in 28. April 2016, 18:22:27
Hi,

welcome to the forum. It is common here to sign by with the name. The first name is sufficient. We prefer to call the people by name and not just "hi".

To your problem. Let's say your buttons are called A1, A2, B1, and B2. One of the A's has to be green or one of the B's.

I suppose you mean either one of the A's or one of the B's. Because if it could be just any of them it would be simple.

Which version of WDP do you have? Please fill out the forum profile. 2012? 2015? Small? Professional? I assume 2015 Professional. The Small version doesn't have a dispatcher as far as I know.

The logic is:
or
  and
    B1 = red
    B2 = red
    or
      A1 = green
      A2 = green
  and
    A1 = red   
    A2 = red
    or
      B1 = green
      B2 = green


This translates to: A1 or A2 are green and B1 and B2 are red or vica versa.
Titel: Re: Editing the conditions in the Dispatcher
Beitrag von: fur in 28. April 2016, 23:35:22
Hi Stefan !

Thx for your answer. I will try this soon.
I have filled in the lacking information in my profile now.
Thx again.

Morten
Titel: Re: Editing the conditions in the Dispatcher
Beitrag von: fur in 29. April 2016, 02:31:04
Hi again, Stefan !

I'm sorry, I cant understand the logic in the dispatch condition field.
I want to the following:

If (A=green or B=green) and (C=green or D=green) : take action.
Regardless of the rest of situations.
(I need one of A or B and one of C or D. They all can be green, that's fine, as long as one in each group is green.)

My problem, I think, is that I cant see what scope the Ors and Ands rules over. If you can give me examples of this I will be grateful. (It's quite many years since my school education in this topic.)
Titel: Re: Editing the conditions in the Dispatcher
Beitrag von: fur in 29. April 2016, 10:02:07
Hi again !

I think my brain has worked during my sleep last night because now I see how to do this. And I have tested it to be ok, also. Yippi !
Titel: Re: Editing the conditions in the Dispatcher
Beitrag von: Pierangelo in 03. Mai 2016, 13:58:04
Hi Morten

I am happy that you reach your target, just as info for any other guy interest in i will include an example of your problem.
I have defined four buttons A,B,C,D and i want that a signal will be turned to green when A or B are green and C or D are green.
In the enclosed images you can find the dispatcher record definition and the result action.

Bye
Pierangelo