my code looks like this so far
legend for coding/question below
I want to add a B value. if the value is B, I want it to do nothing - end the loop and move on with the macro...so something like
I think the first endif is probaby the wrong way to do it.
Essentally I can have 6 values- A, B, and X (where is X anything but A or B) . If A, do the A actions. If B, I want to exit the loop. If anything but A or B do the X actions.
what is the proper coding?
legend for coding/question below
- newvariable is the variable name for an inputted value
- ...A actions -the commands if the value is A
- ...X actions - commands if the value is not A or B
HTML:
if newvariable = "A" then
....A Actions
else
.....X Actions
End if
I want to add a B value. if the value is B, I want it to do nothing - end the loop and move on with the macro...so something like
HTML:
if newvariable = "A" then
....A Actions
else if newvariable = "B" then
endif
else
.....X Actions
End if
I think the first endif is probaby the wrong way to do it.
Essentally I can have 6 values- A, B, and X (where is X anything but A or B) . If A, do the A actions. If B, I want to exit the loop. If anything but A or B do the X actions.
what is the proper coding?
Last edited: