making multiple of numbers in the expression editor

developer6810developer6810 Member Posts: 139
edited July 2012 in Working with GS (Mac)
How would you say like for example, you wanted to say this attribute is not equal to 1 through 10 (like including all numbers) and put it all in one expression editor? Thanks.

Best Answer

  • gyroscopegyroscope I am here.Posts: 6,598
    Accepted Answer

    @developer6810

    Hi again! You won't need the expression editor for this if it's in a Rule. And you'd manage it this way (although there are other ways, I'm guessing):

    Rule: When All conditions are valid:
    Attribute YourAtt > 0
    Attribute YourAtt < 11

    -------empty behaviour space------------
    Otherwise
    ------do your stuff---------

    Hope that helps.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Answers

  • developer6810developer6810 Member Posts: 139
    @gyroscope

    Interesting idea. However, along with that condition, I also had a few others so I wouldn't be able to put it in the otherwise case. So basically, I have, a condition xxxxx and I want it to be when attribute xxxxx ≠ (440 to 470) --- do behaviors.

    Any ideas?

    Thanks :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited July 2012

    That's straightforward enough; if you mean not being able to put stuff in the otherwise section because you'll have more than these conditions, you will still be able to, when all of the other conditions are added, like this:

    Rule: When All conditions are valid:
    Attribute YourAtt > 0
    Attribute YourAtt < 11
    Attribute YourAtt > 439
    Attribute YourAtt < 471

    -------empty behaviour space------------
    Otherwise
    ------do your stuff---------

    :-)


    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • developer6810developer6810 Member Posts: 139
    @gyroscope

    Oh yeah I was a little confused. Thanks. I'll let you know if it works :)
Sign In or Register to comment.