if vectors.

"sky" <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <000301c3e77b$aa2ac830$ef412a80@skystudio1>
using "if" with vectors


I think what you want is:
	if (food get-color) == (0, 0, 0): free self.

Note the "==" (as opposed to "=").

"=" is an assignment operator, it tries to set the
value of a variable.

"==" is the test operator, it is used to test
equality in, for example, if/then statements.

- jon klein


------------------------------

I actually figured out the "==" command last night, and the simulation
will run, but it returns an error on the command line every time every
iteration. I also tried "<", to no avail. Can you use less-than with a
color?

sky

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.