Change attribute not working???

eric.ojhaeric.ojha PRO Posts: 23
edited August 2012 in Working with GS (Mac)
I have a table wordlist with ~ 30 words, and boolean data as to whether the word is a) an animal or b) a colour.

I am trying to make it so that a random word will be chosen from the table, but if the chosen word is not a colour, it will continue choosing random words until a word that is a colour is chosen.


I'm have a global integer attribute selecting a number from 1-30.
I have a global attribute (colour).
I'm constraining the global colour attribute to the boolean (colour) from the table based on the random number chosen.
I have a change attribute rule set to run when the global attribute boolean is false.

I was expecting to only see chosen words to restricted to the colours in my wordlist, but it seems that it is not changing when the word is not a colour. Is there a way around this? or an easier method that someone can recommend?

Comments

  • wij_manwij_man Member Posts: 66
    I'm going to ask something obvious here. But did you constrain your attribute using the drop down? I did something like this before where the constrain wasn't working but I'd typed it out (without thinking) rather than using the dropdowns to select properties...
  • ironDanironDan Member Posts: 148
    Why not make two separate Tables one for animals and one for colors and then call upon which table you want to get the data from.
Sign In or Register to comment.