PDA

View Full Version : Defining multiple variables in one line of code.


8DTK8
08-24-2010, 04:05 PM
This is something silly, but I was wondering if there is anyway to set a group of variables at the same time.

For example;

X = 20;
Y = 20;
Z = 20;

X && Y && Z = 20; (I know this doesn't work or else I wouldn't have to post)

It seems like it would make life easier if whatever goes in the spot of the 20 ever needed to be changed.

Thanks in advance.

NinjaTrader_Josh
08-24-2010, 04:30 PM
You would need to set them on different lines.