RE: help needed with testing variable in an if statement

2002-01-21 Thread Thisell, Andrea
Your format is exactly the way that I've done similar things, except for putting another double quote after the abc (I assume that was just a typo anyway). And make sure to use semicolons at the end of your statements inside the if statement. But otherwise, I think you one way to do it already.

Re: help needed with testing variable in an if statement

2002-01-21 Thread Vicky Lorenzo
Hi Anadi, Hope this helps: #!/tools/bin/perl -w print "enter a number\n"; $a = ; if ($a == 12 or $a== 8) {print "right\n";} else {print "incorrect\n";} #end of script -vicky --- A Taylor <[EMAIL PROTECTED]> wrote: > Hi all, > I am trying to test three variables in an 'if' > statement eg: >