Is it possible to return multiple values from a for loop when the condition is satisfied more than once?
for(var i=0;i<graphVariableCount;i++)
{
if(commandResponse.GenericName == graphVariables[i].variable.index)
{
return graphVariables[i].variable.index;
}
}
The issue with the above code is that it only returns one value. If the GenericName of graphVariables[i].variable.index is the same for multiple variables (4-5), how can I return all those values?