For each condition you must use one if statement. Using $iif is possible, but to get it working right, you would have to start nesting $iif's, which is even worse than using multiple if's.

Besides, in the end how the code looks isn't imprtant.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius