• The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

ANIME AVATARS!

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...
 
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...

I believe that in lua you just get this error
unexpected '=' expected 'then' near {something I forgot whar}
 
dc2d4722dda804b98946496605000dec.jpg



YOU LIED!
 
Back
Top