private static bool TryAddVariable(string line) { string[] nameAndArgumentsLine = line.Split('=', 2); if (nameAndArgumentsLine.Length < 2) { return(false); } string name = nameAndArgumentsLine[0]; string argumentsLine = nameAndArgumentsLine[1]; string?value = nameAndArgumentsLine[1] != "" ? ParseArguments(argumentsLine)?[0] : ""; if (value != null) { if (ValidateName(name) && ValidateName(value, true, true)) { Runtime.AddVariable(name, value); return(true); } } return(false); }