I am tryng to create a nested if statement for a form that will allow me to have a top level IF statment with a bunch of sub level IF statements within it.
For example:
IF(viewcontrol = 0)
{
IF(param = "a")
{
Do Something
}
ELSE IF (param = "b")
{
Do Something
}
ELSE IF (param = "c")
{
Do Something
}
}
That is what i am trying to achieve but the best I can do is something like this:
IF (viewcontrol = 0) AND IF (param = "a")
{
Do Something
}
IF (viewcontrol = 0) AND IF (param = "b")
{
Do Something
}
IF (viewcontrol = 0) AND IF (param = "c")
{
Do Something
}
Is it possible to create a nested if like the first example i have listed?