Bots and Simulations > DNA - General

and/or

(1/2) > >>

Zelos:
I have 4 conditions ina  gene, lets call them for 1,2,3 and 4.
I want 2,3 and 4 to be true if the gene geos on. but I also want it to eb or for 1 so its either 234 or 1 that is true, how do I do?
shall it be like:

--- Code: ---cond
2
3 and
4 and
1 or
start
--- End code ---
? or how shall it be?

Light:
I think that is right ;)

PurpleYouko:
Num would be the one to ask since he programmed that section but I think the correct way is to put the "or" bofre the "or'd" condition.


--- Code: ---cond
2 and
3 and
4 or
1
start
--- End code ---

I also don't think you even need to specify the "and" since it is assumed to be the default anyway.


--- Code: ---cond
2
3
4 or
1
--- End code ---
should work just as well

Please correct me if I'm wrong Num. I have never actually tried using these yet.

Zelos:
im afrain then the program will think 23 or any of 1/4, so it would be either 123 or 234

Numsgil:
You have to think of it in terms of the stack.

2
3
4 or
1

will not do what you want.  3 and 4 will be ored together, then 2, 3 or 4, and 1 will be anded together.

The way you have it looks right, is it giving you problems Zelos?

Navigation

[0] Message Index

[#] Next page

Go to full version