Forest Logo
search
package_2

switch

By @egor00f

Roblox

Mirrored

Switch

Example

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local switch = require(ReplicatedStorage.Packages.switch)

switch(1)
{
	[1] = function()

	end

	[2] = function()

	end

	__index = function()
		print("default")
	end
}

Package Details

Install command (Click to copy)


Version

0.1.1

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.