Int32 int1, int2, int3 = 123;
Given the variables above, how can I verify that all my variables are 123 without creating a collection to execute some Any or something else?
What i tried
if(int1 == int2 == int3 == 123) {
EDIT
I have to apologize, I was not clear enough in my question. I am fully aware of the && operator that I asked regarding "elegance", that is, how can I avoid repeating the value that I want to compare.
In the same way, I assigned all 3 integer variables the same value in one hit, I would like to make a comparison. It seems that this has not yet been done. I think I ask for the impossible, I will have to adhere to the basic syntax and keep it simple.
variables c # conditional if-statement
JᴀʏMᴇᴇ
source share