Order of precedence for rules and conditions - InfoPath Dev
in

InfoPath Dev

Order of precedence for rules and conditions

Last post 10-21-2005 09:39 AM by kikkoman. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-20-2005 12:39 PM

    Order of precedence for rules and conditions

    Hello everyone,

    I was wondering if anybody could tell me how the order for conditions work. For example, lets say I have a rule where the condition is
    1) User's role is Student (and)
    2) Level is Senior (and)
    3) GPA is > 3.0 (or)
    4) Age is < 25 (or)
    5) Schoollevel is College

    Does this equate to an IF statement like this:
    if((1 and 2 and 3) or 4 or 5)

    or:
    if((1 and 2 and 3) or (1 and 2 and 4) or (1 and 2 and 5))

    or is it something else.

    I'm pretty sure it the first case but I just wanted to make double sure.

    If someone could show me where the parenthesis are set, it would help me debug some of my conditions alot faster. When you're just using OR's, then its easy to do, but when you use AND and OR it gets a bit complicated. I know this is very basic stuff but if anyone can help shine some light on this, it would be most helpful.

    Thanks,
  • 10-20-2005 03:36 PM In reply to

    Re: Order of precedence for rules and conditions

    Taking me back to my college days. I hope I do not get this wrong...

    The evaluation goes left to right.

    if(((1 and 2) and 3) or 4 or 5)
    Jason
    http://www.k2distillery.com/
  • 10-21-2005 09:39 AM In reply to

    Re: Order of precedence for rules and conditions

    Yeap we're both correct. I figured it out yesterday by doing some testing, but anyhow thanks for the reply vt_asparagus....
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.