This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
One more quick thing as presently constructed your if/then/else couldn't work because you are comparing one value against two different types of of clauses. I don't know what type of variable your fields are but you cannot compare something to a number and to a string. That is an error.
You can have if [myfield] ="5" or [myfield6]= "a" but you can't have if [myfield]=5 or [myfield]= "a"