I am validating a html form. On submit I have a functions like the one below.
I have seen examples like this, which is why I tried using “with but no documentation on when it’s best to use “with or what it’s really doing. I would also like to know alterative methods of doing a check like this.
Is “with just a glorified “if?
Function valForm(data)
{
With(data)
{
If(…)
{
Alert…
Return false;
}
Else
{
Return true;
}
}