How do I script the following OR command to check Excel R3C1 = "One" OR "Two"
I can NOT get OR to work when checking multiple possibilities for string sSite
proc main
string sSite,sRow
integer iRow = 3 ;Row 3 of Excel
integer iSite = 1 ;Column 1 of Excel
long DDEChan
ddeinit DDEChan "excel" "sheet1"
strfmt sRow "R%dC%d" iRow iSite
dderequest DDEChan sRow sSite
if stricmp sSite "One" || sSite "Two"
usermsg "Yeah, finally got OR to work on Strings!"
else
usermsg "Using OR to check string values sucks!"
endif
endproc
I can NOT get OR to work when checking multiple possibilities for string sSite
proc main
string sSite,sRow
integer iRow = 3 ;Row 3 of Excel
integer iSite = 1 ;Column 1 of Excel
long DDEChan
ddeinit DDEChan "excel" "sheet1"
strfmt sRow "R%dC%d" iRow iSite
dderequest DDEChan sRow sSite
if stricmp sSite "One" || sSite "Two"
usermsg "Yeah, finally got OR to work on Strings!"
else
usermsg "Using OR to check string values sucks!"
endif
endproc