Ok yeah i stopped half-way THAT'S TOO MUCH if(spider=true)
In most programming languages that I know you need at least 2 "="
Ok yeah i stopped half-way THAT'S TOO MUCH if(spider=true)
You can't. You simply can't!
You can set it while listing it or by itself.
For example:
double cow, pig;
cow=3
pig=5
Or...
double cow=3, pig=5;
Well, you can... if(spider=true) will set spider to true, and then return true to the if statement... if(spider=false) will set spider to false, and its behavior is dependent on your implementation of the language you're using. It will either return false to the if statement because spider is now false... OR it will return true to the if statement because setting the spider variable was successful. It's just considered bad practice because the A) this is most probably never what you want to do, and B) the behavior (depending the language) is undefined by the specification, and thus will depend on whoever wrote your compiler/interpreter/whatever...