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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help, IF command

Status
Not open for further replies.

Rosciano

Technical User
Jun 16, 2003
64
IT
Hi everybody,

is it possible to compare more than three numeric and character mvar at the same time?
Example: a=1, b=2, c='yyy', d='zzz' - IF a=0 .and. b=0 .and. c=' ' .and. d=' ' (I know it doesn't work, it's just to explain myself)
If yes, how to fit them in a IF command?
-dBase III Plus-

Thank you
(excuse my bad English)
Regards [smile]
 
What you wrote is a valid expression.
Code:
if a=0.and.b=0.and.c=''.and.d=''
...
endif

Are you getting an error?

These expressions will also work:
Code:
If a+b=0.and.c+d=''
Code:
If a+b=0.and.LTrim(RTrim(c+d))=''


Lyndon
 
Thank you Lyndon,
I already solved ... it was a lapsus [sad]
At the beginning it seemed to me that it didn't work.
I have to stop working until 4am.!! [sleeping2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top