In the following statement, I want to apply an "OR" statement for three different relational conditions, but I couldn't get the "OR" to work. I tried applying brackets ("{""}") into each relational conditions, but it didn't work either. Here's part of the code I have trouble with (the pic is there because the code couldn't display the code properly):

Code: Select all
If>%ini_datePart2%<>Y OR %ini_datePart2%<>M OR %ini_datePart2%<D>%ini_datePart3%=M OR %ini_datePart1%=M
If>%ini_datePart3%=D OR %ini_datePart1%=D
Let>ini_datePart2=Y
Else
Let>ini_datePart2=D
EndIf
Else
Let>ini_datePart2=M
EndIf
EndIf
Thanks for reading.
(For extra points, is there a more efficient way to arrange the Day, Month and Year while avoiding duplicate fields?)