Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is this possible in theory?

Hello, I just came to a random though and I have no time for Studio experiments.

I wanted to ask if it's possible to do this (example):

if x, y, z == 2, 5, 3 then

Came to an idea when I remembered that you can do the same thing with variables (declerating them, not comparing):

x, y, z = 5, 3, 2

In short terms, is it possible to simply row varibales and "answers" in conditions?

1 answer

Yes and no. You can not do it like in the question, but you can in you use "and".

x = 5 y = 3 z = 2 --You can have it on the same line if you want
if x == 5 and y == 3 and z == 2 then --Closest you can get to what you want
	Tiranin:Party()
end

Hopefully this helps you as much as you helped me!

This discussion is preserved as it was. New answers, comments, and votes are closed.