Skip to content

Instantly share code, notes, and snippets.

@mps
Created May 19, 2011 19:44
Show Gist options
  • Save mps/981562 to your computer and use it in GitHub Desktop.
Save mps/981562 to your computer and use it in GitHub Desktop.
var umpd = "NON";
foreach (var rv in r.Vehicles)
{
if (rv.UmpdLimit.Equals("NONE"))
{
data["umpdlimit" + (rv.VehicleIndex + 1)] = "NON";
}
else
{
data["umpdlimit" + (rv.VehicleIndex + 1)] = rv.UmpdLimit;
umpd = rv.UmpdLimit;
}
}
data["umpdlimit"] = umpd;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment