Hello Guys.
Today i'm going to show you how to make two variables have the same value.
First of, i want to start saying i tested this on JavaScript and on C#. I'm not sure if it works on every language.
Okey. So let's say we have the following variables:
int start = 10; int rounds = 2; int timer; int current;
We want timer and current to have the following value:
timer = start * rounds; current = start * rounds;
Instead of typing two times the same line of code, we can do the following:
timer = current = start * rounds;
As you can see, it works just fine: