local R={Name="\114\117\110\105\102",Aliases={},Description="\082\117\110\115 \097 \103\105\118\101\110 \099\111\109\109\097\110\100 \115\116\114\105\110\103 \105\102 \097 \099\101\114\116\097\105\110 \099\111\110\100\105\116\105\111\110 \105\115 \109\101\116\046",Group="\068\101\102\097\117\108\116\085\116\105\108",Args={{Type="\099\111\110\100\105\116\105\111\110\070\117\110\099\116\105\111\110";Name="\067\111\110\100\105\116\105\111\110",Description="\084\104\101 \099\111\110\100\105\116\105\111\110 \102\117\110\099\116\105\111\110"};{Type="\115\116\114\105\110\103",Name="\065\114\103\117\109\101\110\116",Description="\084\104\101 \097\114\103\117\109\101\110\116 \116\111 \116\104\101 \099\111\110\100\105\116\105\111\110 \102\117\110\099\116\105\111\110"};{Type="\115\116\114\105\110\103";Name="\084\101\115\116 \097\103\097\105\110\115\116",Description="\084\104\101 \116\101\120\116 \116\111 \116\101\115\116 \097\103\097\105\110\115\116\046"},{Type="\115\116\114\105\110\103",Name="\067\111\109\109\097\110\100";Description="\084\104\101 \099\111\109\109\097\110\100 \115\116\114\105\110\103 \116\111 \114\117\110 \105\102 \114\101\113\117\105\114\101\109\101\110\116\115 \097\114\101 \109\101\116\046 \073\102 \111\109\105\116\116\101\100\044 \114\101\116\117\114\110 \118\097\108\117\101 \102\114\111\109 \099\111\110\100\105\116\105\111\110 \102\117\110\099\116\105\111\110 \105\115 \117\115\101\100\046";Optional=true}}}local C={startsWith=function(R,C)if R:sub(1,#C)~=C then return end return R:sub(#C+1)end}function R.Run(R,w,A,E,U)local Z=C[w]if not Z then return("\067\111\110\100\105\116\105\111\110 \037\113 \105\115 \110\111\116 \118\097\108\105\100\046"):format(w)end local Q=Z(E,A)if not Q then return""end return R.Dispatcher:EvaluateAndRun(R.Cmdr.Util.RunEmbeddedCommands(R.Dispatcher,U and Q))end return R
-- Decompiled with the Synapse X Luau decompiler.

local v1 = {
	Name = "runif",
	Aliases = {},
	Description = "Runs a given command string if a certain condition is met.",
	Group = "DefaultUtil",
	Args = {
		{
			Type = "conditionFunction",
			Name = "Condition",
			Description = "The condition function",
		},
		{
			Type = "string",
			Name = "Argument",
			Description = "The argument to the condition function",
		},
		{
			Type = "string",
			Name = "Test against",
			Description = "The text to test against.",
		},
		{
			Type = "string",
			Name = "Command",
			Description = "The command string to run if requirements are met. If omitted, return value from condition function is used.",
			Optional = true,
		},
	},
}
local u1 = {
	startsWith = function(p1, p2)
		if p1:sub(1, #p2) ~= p2 then
			return
		end
		return p1:sub(#p2 + 1)
	end,
}
function v1.Run(p3, p4, p5, p6, p7)
	local v2 = u1[p4]
	if not v2 then
		return ("Condition %q is not valid."):format(p4)
	end
	local v3 = v2(p6, p5)
	if not v3 then
		return ""
	end
	return p3.Dispatcher:EvaluateAndRun(p3.Cmdr.Util.RunEmbeddedCommands(p3.Dispatcher, p7 and v3))
end
return v1
