Re: Or What?
- Posted by Kat <gertie at PELL.NET> Nov 18, 2000
- 405 views
Just my two cents worth, use "(" and ")" around all evaluations, it could save you a headache later when you run into presidences of evaluation. if ( X = 1 ) and ( Y = 2 ) then Kat On 17 Nov 2000, at 23:20, Euman wrote: > Hi Paul > > "and" will evaluate both to make sure x=1 and y=2 > "or" will evaluate both as well, but only one x or y > needs to be true to = to "puts" > > besides, I believe you answered your own question > in "puts" didnt you? > > ----- Original Message ----- > From: Paul Kerslake > To: EUPHORIA at LISTSERV.MUOHIO.EDU > Sent: Friday, November 17, 2000 10:39 PM > Subject: Or What? > > > Hello, > > I've been wrting a program that needs to check a few instances before > executing an if statement. Like so: > > if X=1 (somecommand) Y=2 then > puts(1,"X=1 and Y=2") > end if > > Can I use or for this? Is it as literal as it sounds? Like if this variable > or this variable equals this, then do the following.(?) > > -Thanks > -Thomas > > >