ANIME AVATARS!

  • FTB will be shutting down this forum by the end of July. To participate in our community discussions, please join our Discord! https://ftb.team/discord

xTordX

New Member
Jul 29, 2019
576
-6
1
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;
 
  • Like
Reactions: pc_assassin

Oxworth

New Member
Jul 29, 2019
39
0
0
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...
 
  • Like
Reactions: pc_assassin

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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}
 
  • Like
Reactions: pc_assassin

LivingAngryCheese

Over-Achiever
Aug 22, 2014
676
1,580
228
A place
dc2d4722dda804b98946496605000dec.jpg



YOU LIED!