Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if statement

Status
Not open for further replies.

flea333

Technical User
Sep 4, 2003
47
0
0
US
I need to compare two sets of strings but I am finding it hard with this primitive language. I need to do this:

if ((string1 != string2) && (string1 != string3))

the strcmp does not want to work well with ! or 'not'
 
proc main
string FirstStr, SecondStr, ThirdStr
FirstStr = "First"
SecondStr = "First"
ThirdStr = "First"
if not strcmp FirstStr (SecondStr, ThirdStr)
usermsg "The first string doesn't match both."
else
usermsg "The three strings are Identical."
endif
endproc

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top