public override string TransformRange(string stringToTransform, string commandContent, Dictionary <string, string> variables) { var split = commandContent.Split(',').ToList(); string variableName = split[0]; string value = split[1]; if (variables.ContainsKey(variableName)) { if (variables[variableName] == value) { return(stringToTransform); } return(""); } return(StringTemplate.CreateIfBlock(variableName, value, stringToTransform)); // The variable is not set yet, so we need to keep the if command until it is ready to be processed. }